Click here to Skip to main content
16,004,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guys,

I am working with streak api using ajax and jquery. i am getting authorization error when made request.

here is my ajax call

JavaScript
$(function () {
       $.ajax({
           type:"GET",
           headers: {
               'Authorization':'Basic ' + btoa("XXXXX"+ ':')
           },
           dataType:"json",
           contentType: "application/javascript",
           async: true,
           crossDomain: true,

           url: "https://www.streak.com/api/v1/pipelines",
           success: GetStages1,
           error: GetError
       });

   });

   function GetStages1() {
       alert("call");
   }
function GetError() {
       alert("Error");
   }

XXXX: api key.

I am not sure what i am doing worng.

Thanks
Posted
Comments
virusstorm 13-Aug-13 15:41pm    
Are you getting an error from the API or an HTTP error? If you are getting an authorization error, I would suggest contacting the support team for the API. They should be able to work with you to determine why you are getting the error message.
govind giri 22-Aug-13 5:36am    
thanks for reply.. still i am getting same error.
VishwaKL 14-Aug-13 2:00am    
Check the API permissions, i think to get an access to the api you have to provide security Information

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900