RE: How to create oauth signature in Restlet authorization TBA (signature mathod: HMAC-SHA256)?

I am new in NetSuite Integration, after having an endpoint API, i m trying to call it and for authorization i have consumer key, consumer secret, token id and token secret. Can anyone help me in how to get the `oauth_signature` in restlet script?

When i test the provided endpoint in postman, i get that the header automatically set with :


OAuth realm = "123456_SB1",

oauth_consumer_key = "asdfghjklzxcvbnmwertyui234567892345678ertyuicvbnxcvbndfgher56",

oauth_token = "dfsfsfddafdcvbnmwertyui234567892345678ertyuicvbnxasdasadsdafd",

oauth_signature_method = "HMAC-SHA256",

oauth_timestamp = "1705502763",

oauth_nonce = "3RTZ9gFUmt",

oauth_version = "1.0",

oauth_signature = "WERUTUIIYO23456709SDFG576F"

PLEASE NOTE THAT THEY ARE DUMMY VALUES.

I tried to have this in generated in my restlet but couldnt get a proper breakthough.

Sorry if i have my concepts unclear, this is becaue i m very new in integrations and rest architecture.

4N335 Rookie Asked on January 17, 2024 in SuiteScript.
Add Comment
2 Answers

If you’re using Python, you can use this lib
https://pypi.org/project/NetSuite-Connector/

It helps yuo add authorization header for Restlets and rest webservices

Rookie Answered on January 17, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.