I am trying to use Restlet api using oauth 1.0 and i am getting this issue
Hi,
One thing that’s worth checking is the order as I think NetSuite can be a bit fussy about this. It should be:
realm
oauth_consumer_key
auth_token
oauth_signature_method
oauth_timestamp
oauth_nonce
oauth_version
oauth_signature
Let me know if this makes any difference.
Thanks,
Chris
Apologies – I’ve just been checking my facts and the order might not be too important in the header but it is certainly important when constructing the signature.
As next steps, I would recommend checking the Login Audit Trail:
Setup > Users/Roles > View Login Audit Trail – Make sure to add a column for “Detail”.
And checking that your signature generation code produces the expected result based on the example on this page:
https://suiteanswers.custhelp.com/app/answers/detail/a_id/77576#subsect_1520523189
Since this is a custom RESTlet script, it all depends on what is happening in that script.
However, this may be useful:
https://suiteanswers.custhelp.com/app/answers/detail/a_id/97332/loc/en_US
This doesn’t look like an authentication issues.
Could you please send us a snippet of the code you’re currently using.
Hi,
There’s nothing that looks majorly wrong here.
Do you get anything logged in the RESTlet itself?
Thanks,
Chris
No. could you please like to share a snippet???It would be great help, I am trying from last 3 days??
You are targeting this script: script=569&deploy=1
Could you please share the contents.
what contents you are looking for ? Is that the whole function?
below i writing down the whole function please check this,if you found any error please let me know-
Hi,
This is your code that is POSTing into NetSuite to this script:
https://****001-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=569&deploy=1
That is a RESTlet and so there should be code at the NetSuite side that is responding to this call.
Is this what you’re looking for or were you looking to use the standard REST Web Services?
Thanks,
Chris