jk121960
jk121960

Reputation: 873

SuiteScript 2 restlet accessing with Node

I need to call a SuiteScript restlet using Node with Oauth, I can't seem to find enough info. I have set up the "Integrations app" and I have the keys. Which Node Oauth is best suited for POST requests? We have npm Oauth 1 and 2, we have simple-OAuth etc. Then we have the form of passing the information which is different in each case as NetSuite has it's own requirements. I can't seem to hit the right combination to get this to work. Any help would be greatly appreciated.

thanks in advance for any help you may give.

Upvotes: 0

Views: 352

Answers (1)

Manu AVS
Manu AVS

Reputation: 575

You don't need to use Oauth. Use "Authorization" header when sending request to RESTlet

for eg:

"Authorization" : 'NLAuth nlauth_account=******, nlauth_email=****, nlauth_signature=***, nlauth_role=3'

Upvotes: 2

Related Questions