Hi there,
I’m developing a Freshdesk app using platform version 2.3 and FDK 9.0.2. When using the Request method and request templates while running the app locally the Authorization header is not being passed through (testing using requestbin). When I upload the same app code as a custom app (not running locally) the Authorization header is being sent.
Example code:
iparams.json
"api_key": {
"display_name": "API key",
"description": "The API key secret",
"type": "text",
"required": true,
"secure": true,
"default_value": "..."
}
requests.json
{
"sampleGet": {
"schema": {
"method": "GET",
"host": "xxx.m.pipedream.net",
"path": "<%= context.endpoint %>",
"headers": {
"Authorization": "Bearer <%= iparam.api_key %>",
"Content-Type": "application/json",
"API-Version": "<%= iparam.api_version %>"
}
}
}
}
app.js
let response = await client.request.invokeTemplate('sampleGet', {
context: { ... }
});
The API-Version header comes through in both cases.
What am I doing wrong?