Hi guys,
We need to send an access token via third party node package(Eg: axios, request) for to make an API call.
Already you have said that the way of how to make an API call in the serverless app using access token like:
var options = {
headers: {
Authorization: “bearer<%= access_token %>”
},
isOAuth: true
}
$request.post(url, options)
Yeah that is fine!.
Now we need to send with attachment for to make a API call.
We were know how to send an attachment for the API using third party node package.
The problem is:
Lets say If now we proceed to send an attachment followed by the way, here we need access token to call API.
Third party node package does not read access token when we wrote like <%= access_token %>.
Now how we can to resolve this.
Thank you.