Hi Mike,
I just need some help (urgent though :( ) on whether there is any
syntactical error in the request that I am preparing. The request code is
pasted abve as well as the error.
Regards,
Sumit
On Saturday, September 7, 2013 8:54:42 AM UTC+5:30, Sumit Kumar wrote:
>
> Hi Mike,
>
> I am adding the raw response that I get:-
>
> {"gapiRequest":{"data":{"body":"Not
> Found","headers":{"Cache-Control":"no-cache, no-store, max-age=0,
> must-revalidate","Pragma":"no-cache","Expires":"Fri, 01 Jan 1990 00:00:00
> GMT","Date":"Sat, 07 Sep 2013 03:22:01 GMT","Content-Type":"text/html;
> charset=UTF-8","Server":"GSE"},"status":404,"statusText":"Not Found"}}}
>
> This happens even when I replace the "default" by the userid, i.e., "var
> rPath = 'https://picasaweb.google.com/data/feed/api/user/*userID*';"
>
> Need help on this.
>
> Thanks,
> Sumit
>
>
> On Wednesday, September 4, 2013 10:15:28 PM UTC+5:30, Mike Erickson wrote:
>>
>> Do you have any authentication on your request? The /user/default days to
>> use the authenticated user, but will fail if you don't include any auth.
>> The browser will use cookies for authentication, if available.
>>
>> If this is an authenticated request, what message do you get back from
>> the server?
>>
>> Thanks.
>> On Sep 4, 2013 7:45 AM, "Sumit Kumar" <[email protected]> wrote:
>>
>>> Any idea why this code does not return the response xml:-
>>>
>>> var rPath = '
>>> https://picasaweb.google.com/data/feed/api/user/default';
>>> var hHeaders = {'GData-Version': 2};
>>>
>>> var mEthod = 'GET';
>>> var request = gapi.client.request({
>>> 'path': rPath, 'method': mEthod, 'headers': hHeaders
>>> });
>>> request.execute(function (resp, rawRESP) {
>>>
>>> alert('rawRESP: ' + rawRESP);
>>>
>>>
>>> });
>>>
>>> When I paste the url on brower, a proper xml response is displayed.
>>>
>>> Regards,
>>>
>>> Sumit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Picasa Web Albums API" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at
>>> http://groups.google.com/group/google-picasa-data-api.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/groups/opt_out.