I want to use token base but to generate token I b...
# suitescript
m
I want to use token base but to generate token I believe I need to pass username/password. then after I will attach token to further requests
t
are you going to write a restlet for the api calls or are you wanting to use the suitetalk api (soap interface)?
m
I am not sure which one I have to user.
you can advice on the bases
t
the difference between a restlet and suitetalk is huge. Suitetalk is an full interface that can view/create/edit/delete what ever records the role of the user has. A restlet is a suitescript that runs as the user but you can narrow down the action to be whatever you want it to be. Normally if you control both ends of the request people are more comfortable using suitetalk, but if you are having to give a un-trusted third party access you tend to use restlet. You also need to consider concurrency i.e. how many request will you be getting simultaneously and from where. all these things need to be considered in choosing you method
but to answer your original there is a good guide here for how to make postman talk to netsuite using suitetalk http://blog.prolecto.com/2016/10/22/video-learn-how-to-make-a-netsuite-web-services-api-call/
m
seems like suitetalk is having more control?
t
suitetalk allows you to do everything remotely, restlet allows you to do everything locally with a remote connection.... control is an illusion on this they both have control its just applied at different levels
m
and also suitetalk talks through wsdl?
and restlet talks by creating and deploying scripts in personal netsuite space?
kindly confirm?
t
correct
m
so there is no rest services instead there are SOAP wsdl to call directly
b
if it helps, a restlet is a servlet with a restful interface
suitetalk is a soap webservice
m
can you please share link for login token generation with wsdl
b
the restlet is written in javascript that netsuite runs
m
I saw there is a soap example application link for c#> is there any link for nodejs for soap as well?
m
Rest SuiteTalk is coming in one of the next couple releases, it's already in beta
b
its based on oauth 1
m
and any idea about how long rest suite?
m
My guess is that it will be part of 2019.2 or 2020.1 based on the fact it's already closed beta. You can email research@netsuite.com to request access to the beta
For postman / js sample authentication code for SuiteTalk I have some code here https://gist.github.com/michoelchaikin/2a4916e0917aa0f79b8eb9d7fe275363
m
so it means these new suitetalk rest apis will replace existing wsdl suitetalk api
?
t
replace probably not, but given time they might well become the preferred.
m
They will definitely be sticking around for quite some time. Many integrations are built on it
If you are interested the documentation for the REST API is available via https://<accountnumber>.app.netsuite.com/help/helpcenter/en_US/PDF/REST_Web_Services.pdf
m
ah understood
so it means in future there may be only rest api and no restlet even?
m
I don't think they plan to get rid of restlets
m
Do the new beta rest api have swagger as well?
m
Yes it uses OpenAPI 3.0
and following the inscruction to generate authentication token in postman
it is saying to import template file. I downloaded the https://<accountID>.app.netsuite.com/app/external/integration/integrationDownloadPage.nl
and did not find any template file. can you guide me which is the template file in downloaded folder?
m
It's a closed beta, you have to request access via the email I posted above and then enable the feature on your account
m
ok. I already sent the email and waiting for reply. so usually how long they take to reply back
m
For me it was three weeks
m
why so long?
m
🤷