Results 1 to 2 of 2
  1.    #1  
    I am having issues while calling google API with request headers. Below is my code.

    var tempCookie1 = this.myCookie.get();
    var url = 'http:&/&/'+tempCookie1['userName']+'?kind=album&v=2&alt=jsonc';"Auth Id:"+tempCookie1['authId']);
    this.authString = tempCookie1['authId'];"Auth String:"+this.authString);
    var request = new Ajax.Request(url, {
    method: 'get',
    evalJSON: 'force',
    requestHeaders : {"Authorization" : "GoogleLogin auth="+authString},
    onSuccess: this.gotResults.bind(this),
    onFailure: this.failure.bind(this)

    If i remove the requestHeaders it works fine and if i remove the authSTring it gives a 403 error. Am i doing something wrong here? ANy help would be appreciated.
  2. mgmft's Avatar
    199 Posts
    Global Posts
    230 Global Posts

    did you find a solution? I have to set the referer and found your post.



Posting Permissions