Hi am63.
Thanks very much for taking the time to do some tests.
I tried to change only the authentication method in the code I have
posted (to ClientLogin) and still doesn't work, even if now the error
message makes more sense:
Expected response code 200, got 500
Service error: could not update entry
And I was using save(), rather than insertEvent, as you suggested.
When you said:
"The feed should be fetch with "full" projection."
do you mean I should change something in my code?
Thanks,
Dan
am63 wrote:
> Hi,
>
>
> You should use the Save() method, not insertEvent.
> The id is correctly fetched (although I use the following code, it
> nevertheless produces the same id) :
>
> if ( ereg("/full/(.*)", $event->getSelfLink()->getHref(), $regs) )
> $id = $regs[1];
>
> The feed should be fetch with "full" projection.
>
>
> However, in my PHP application, I use ClientLogin authentication. I tried
> with "default" as the feed user part, and also with secondary calendar
> "users". It works. The only difference seems to be with the authentication.
>
> Switch to ClientLogin and I'm pretty sure it will work nice :
>
> $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
> Zend_Gdata_Calendar::AUTH_SERVICE_NAME);
> $gdatacal = new Zend_Gdata_Calendar($client);
--
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