veron-li / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Is there a way to retrieve a "specified" google calendar using google calendar api? #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 It seems there is only api calls to retrieve either all calendars that 
user subscribed to or just the calendars that the user owns.  

Is there a way to retriev a particular calender that the user has access 
to? Thanks.

Original issue reported on code.google.com by alpha.da...@gmail.com on 16 Mar 2009 at 11:53

GoogleCodeExporter commented 8 years ago
Can you elaborate? You can retrieve the list of calendars a user has access to 
and then use one of those entries 
to just retrieve that particular calendar. Isn't that what you want? 

Original comment by fman...@gmail.com on 23 Mar 2009 at 10:00

GoogleCodeExporter commented 8 years ago
Yes, I currently know of 2 ways to retrieve a particular calendar the the user 
owns/have access to.  I was wondering is there is a way programmactically to 
retrieve a particular calendar by specifying some parameter value that would 
identify the calendar to retrieve.  The 2 methods I know are as follow:
1.  Retrieve all the calendar the the user has access/owns.  Loop through these 
calendar returned and identify the one calendar to retrieve.
2.  Copy the private xml calendar address form the Google Calendar web site, in 
the 
particular calendar's Calendar Setting.  Copy this into the code and I can 
retrieve 
extactly that calendar that I want.

Thank you.

Original comment by alpha.da...@gmail.com on 23 Mar 2009 at 6:07

GoogleCodeExporter commented 8 years ago
The two methods you listed are pretty much the only two ways to retrieve a
calendar.

A user's primary calendar has it's ID set equal to that user's email address.
If you're accessing another user's primary calendar, you can predict the
calendar ID this way. However, all other calendars are assigned a
pseudo-random ID that can't be predicted.

We do not offer the ability to search through the calendar metafeed.

Calendar IDs do not change, so the good news is that after you've retrieved a
calendar once, you can cache the URL for future requests if desired.

Original comment by tjohns.ggl.legacy@gmail.com on 26 Mar 2009 at 11:18

GoogleCodeExporter commented 8 years ago
I should note that if this is something you want to see added, you can submit a 
feature request for the Calendar 
Data API itself here:

http://code.google.com/p/gdata-issues/issues/entry?template=Calendar%20(Enhancem
ent%20Request)

Original comment by tjohns.ggl.legacy@gmail.com on 26 Mar 2009 at 11:25

GoogleCodeExporter commented 8 years ago
Thank you for the reply to my quesiton.  I just want to make sure that I'm not 
retrieving the calendaring in a wrong way.  Thanks.

Original comment by alpha.da...@gmail.com on 31 Mar 2009 at 6:14

GoogleCodeExporter commented 8 years ago
No problem. issue closed as a potential service enhancement, but not a .NET 
issue

Original comment by fman...@gmail.com on 31 Mar 2009 at 6:18