trying to call a restlet with postman using post m...
# suitescript
x
trying to call a restlet with postman using post method after generating CONSUMER KEY, CONSUMER SECRET, TOKEN ID, TOKEN SECRET, tried to called restlet, but the following error { "error": { "code": "INVALID_LOGIN_ATTEMPT", "message": "Invalid login attempt." } } please fix me how to generate "Authorization" header using the above api keys
s
Did you set Add authorization data to
Request Headers
? It's easy to miss.
x
Thanks for your help, I just added fields there except the following ones could you introduce me how to fill them up?
s
You don't need to provide any of that. Callback URL, Verifier and Timestamp aren't needed and the Nonce is automatically generated by Postman.
You do need to provide the Realm though and should replace - with _
x
thanks, it works after replacing with _
🫡 1
s
You're welcome