Hello Emily,

Can you make sure that you do retrieve the event after the first update (the
one that set the title to "any title")? I do agree that if an error
occurred, the API or the client library should have raised an exception
which didn't happen...

Also, can you try retrieving the event again after the last update by doing:
  EventEntry entry = service.Retrieve<EventEntry>("CALENDAR_EVENT_URL");

And verify that the title hasn't been modified.
Additionally, if you can try to catch the update (PUT) request that is being
sent, you would be able to see if the client library did send an XML with an
empty title as requested or not.

Best,
Alain

On Sat, Jun 4, 2011 at 8:10 PM, Emily <[email protected]> wrote:

> I'm stock in a strange behavior of .NET C# Google Calendar API :
>
> The problem is :
>
> Once an event is created with empty title, it can simply use the following
> code to update the existing event.
>
> eventEntry.Title.Text = "any title";
> eventEntry.Update();
>
> but when I try to update it again with empty string, after successfully
> updated, the API returns the original title to me, like the following code
>
> eventEntry.Title.Text = "";
> EventEntry updatedEventEntry = eventEntry.Update();
> Console.WriteLine(updatedEventEntry.Title.Text);
>
> the output is  : any title
> it is expected to be an empty string.
>
> does anyone have any idea about the condition ?
>
> thanks
>
>
>
>
>  --
> 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
>



-- 
Alain Vongsouvanh

-- 
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

Reply via email to