Discussions
bearer token not working with api call
over 3 years ago by Mario Kazangas
I am getting this error below when I try to use a bearer token in my custom add on
Error:"Account trial has expired. Please select an account plan and try again."
the format of the API call is as follows
url: 'https://api.servicem8.com/api_1.0/material.json?%24filter=active%20eq%201',
headers:
{
accept: 'application/json',
authorization : 'Bearer '+event.auth.accessToken
}