On 2008-12-23 10:40:38 -0800, Kalvados <[email protected]> said:
> 
> In case my subject is not complete enough :
> 
> I want to retrieve only one event which I know the EventId.
> I don't find very complete information on how to use full text queries
> in C#.net...
> So for the moment I first retrieve all events, then I loop over the
> returned feed until I find the event matching the EventId I'm looking
> for...
> It's quite heavy to get only one event !
> So help would be appreciated :-)
> 
> (I hope my English is comprehensible... excuse me if it's not)

Kalvados,
If by event ID, you're referring to the 'eid' query parameter that's 
used outside of the Calendar API, then there's no other way to look up 
the entry via the API.

However, if you're referring to the calendar's atom:id, then you can 
use that as a URL (though I strongly suggest using the 'self' link 
instead -- atom:id's are not guarenteed to be URLs). So, let's say you 
have the event's ID stored as 'eventID', and you have a Calendar 
service object 'calendarService'. In this case, the code should be:

        AtomEntry entry = calendarService.get(eventID);

(I haven't tested this myself, and I don't use the .NET client very 
often, so let me know if you encounter any problems with this.)

-- 
Trevor Johns



--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to