request.get in V1

 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 = "" + ownerID;
        this.$request.get(url, options)
            .done(function (dataComp) {
            .fail(function (error) {
                console.log("****ERROR: " + error.status + error.response);

thanks in advance

Login or Signup to post a comment