I have to show some additional company information on the ticket page and can´t get the API request right to access the data. Got the V2 version running after some tests, but it seems my authorization setup is some wrong in V1.
var options = {};
var headers = { "Authorization": "Basic <%= MYAPIKEY:X' %>"};
var options = { headers: headers };
var url = "https://XXXXXXXXXX.freshdesk.com/api/v2/companies/" + ownerID;
console.log(url);
this.$request.get(url, options)
.done(function (dataComp) {
console.log(data);
})
.fail(function (error) {
console.log("****ERROR: " + error.status + error.response);
});
thanks in advance