Hi Dmitry,
The way to get contacts and get calendars will be different, normally when
you do contacts GData API's ("
https://www.google.com/m8/feeds/contacts/default/full") you will get the
contacts data directly, but when you do get calendars its different,
when you do GData API of calendar (
https://www.google.com/calendar/feeds/default/allcalendars/full) it wont get
the data directly, instead you will get re-direct URL first and then need to
re-use the re-direct url and import the data.
For detail description,
Many HTTP libraries will respond to "302 Redirect" by performing a GET on
the URL specified in the Location header, regardless of which method/verb
was used in the original request. If the HTTP library which you are using
does not enable you to control this behavior, you can set an additional
header X-If-No-Redirect with a value of 1. This will prevent our servers
from responding with a 302 status code in the case of a redirect. Instead,
you will receive a "412 Precondition Failed" response with the 'S'-cookie
and an X-Redirect-Location header. With this information, your code can then
do another request with the original HTTP method/verb and content, adding
only the 'S'-cookie header and/or gsessionid URL parameter.
For more info please look in the following link :
http://code.google.com/apis/calendar/faq.html .
Hope it helps you in sorting the issue,
--
Regards,
Satish Bellapu
On Thu, Jun 16, 2011 at 2:46 AM, Steven Bazyl <[email protected]> wrote:
> For the calendar example, it looks like the nonce is different in the base
> string and the actual URL.
>
> Nonce in base string: 4572616e48616d6d65724c61685486
> Nonce in URL: 4c94097174158582ae32cfd1005a53fc
>
> Yet the two signatures are the same:
>
> aQqbku%2FjrDnlqcd1Gqs2CSnAWvg5OntS%2B%2FP9SO%2Fbz8YAdQFHGfDf5FqhlSMPpH5PjrThGWSdEzVVCtrCyvn2CABsQoXLsVtsSrRX0PX2%2F05g%2BLnzi3g%2FF5c075%2BLe%2BRV2P6pcwpCe1EF%2FQSoUjPgn7UTlvFbyDSR9NHmUiTrg%2Fw%3D
>
>
> aQqbku%2FjrDnlqcd1Gqs2CSnAWvg5OntS%2B%2FP9SO%2Fbz8YAdQFHGfDf5FqhlSMPpH5PjrThGWSdEzVVCtrCyvn2CABsQoXLsVtsSrRX0PX2%2F05g%2BLnzi3g%2FF5c075%2BLe%2BRV2P6pcwpCe1EF%2FQSoUjPgn7UTlvFbyDSR9NHmUiTrg%2Fw%3D
>
> Looks like you modified the nonce in between computing the signature and
> assembling the URL?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Calendar Data API" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/calendar/community/forum.html
>
--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html