Node.js
How to use access_token?
I'm making a request:
axios.post('https://api.smartsheet.com/2.0/token')...
response:
{
access_token: 'xxx',
token_type: 'bearer',
refresh_token: 'xxx',
expires_in: 604799
}
var smartsheet = client.createClient({
accessToken: 'xxx',
logLevel: 'info',
});
But the result is always the same:
statusCode: 403,
errorCode: 1004,
message: 'You are not authorized to perform this action.',
refId: 'cdx056'
Why is that? Why is the access Token incorrect?