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

40 Views Asked by At

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.

0

There are 0 best solutions below