Hi team,
I'm currently working on an application which uses secure requests. I have been able to successfully connect to one external API but I've having trouble with another.
Here is a test function i've created:
asyncfunctiongetReports() {
try {
constdata = awaitclient.request({
url:'https://go-admin-api-qa.cambridgedev.org/v2/reports.list?action=PROVISION_USERS',
type:"GET",
accepts:"application/json",
secure:true,
headers: {
Authorization:`Bearer {{setting.GoAdminApiToken}}`,
}
})
console.log(data)
} catch (error) {
console.error(error.message)
}
}
Here is the error:
Here is the manifest:
"domainWhitelist": [
"api.test.edjin.com",
"api.edjin.com",
"go-admin-api-qa.cambridgedev.org/v2/reports.list?action=PROVISION_USERS",
"go-admin-api-qa.cambridgedev.org",
"go-admin-api-qa.cambridgedev.org/v2"
],
"parameters": [
{
"name": "EdjinApiToken",
"type": "text",
"secure": true,
"required": true
},
{
"name": "GoAdminApiToken",
"type": "text",
"secure": true,
"required": true
}
],
I've contacted the owners of the API and they told me they can't see any requests from Zendesk.
interestingly enough, when i remove the /v2 domain from the allow list, i get a 400 error
I should mention, that I've tested in POSTman without any issue.
Any advice?
Thanks :)