Anyone got TBA working in Postman to POST to a RES...
# suitescript
c
Anyone got TBA working in Postman to POST to a RESTlet?
b
take a look at how the rest webservices use tba at Working with REST Web Services Using Postman
c
@battk there doesn't seem to be any instructions on auth that match what I am seeing in postman unless I download the NS REST postman environments?
p
message has been deleted
šŸ™Œ 1
for auth 1.0
b
you can download the environment too, but you essentially fill in the variables with the values from your account
p
also for ā˜ļø to work created the integration with ā€œToken based authenticationā€ checked and the other options under ā€œtoken based authenticationā€ unchecked
c
message has been deleted
Still getting a HTTP 401 for some reason
with sandbox - I think you need to add _SB1 at the end of the realm?
p
yup
c
not sure why then
p
important that it’s underscore
did you generate a token using the integration above?
c
yes
I have the consimer and access tokens
HMAC-SHA1 ok?
changed to 256 - still 401
p
check the deployment record for your restlet
c
ahh - changed to add to headers and now got 404
@Petter just needed to set the deployment record to deployed instead of test - thanks mate
šŸ™Œ 1
šŸ‘ 1
p
great, should also work with test if you use the same user as the script owner (i.e. yourself most likely)
s
also supplementary to the above, make sure your realm stuff is in caps!