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:&/&/picasaweb.google.com/data/feed/api/user/'+tempCookie1['userName']+'?kind=album&v=2&alt=jsonc';
    this.controller.info("Auth Id:"+tempCookie1['authId']);
    this.authString = tempCookie1['authId'];
    this.controller.info("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
    Posts
    199 Posts
    Global Posts
    230 Global Posts
    #2  
    Hi,

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

    Thanks

    Marcel

Posting Permissions