The actual URL of a feed is

www.google.com/calendar/feeds/calendar_id/feed_type

Specifically, you need to parse the string following the final / from  
the calendar id, and place that string into the url described above.  
That string will most likely be a token style email address.

You get the private/full feed for that calendar, from which you will  
be able to obtain the edit url for the calendar.

in pseudo code:

Create your Google connection

Obtain your Auth Token

Call the list of calendars feed

For each calendar

        If status is owner or contributor

                Calendar ID = String following final "/" in feeds calendar 
entity  
ID element

                Calendar URL = www.google.com/calendar/feeds/Calendar 
ID/private/full

                Call Calendar URL feed attaching Auth Token to HTTP headers

                        If request if redirected

                                Ensure Auth Token is attached to redirect

                Calendar Edit URL = Calendar feeds edit url element


On Dec 12, 2006, at 2:37 PM, mdegroupaccount wrote:

>
> hi,
>
> Thanks  for great response Jake. It is great to get your response.
>
> If i specify to write to address
> http://www.google.com/calendar/feeds/<my_email_acct>@gmail.com/ 
> private/full
> it is successful. It writes to a default calendar that i own .
>
> But i want to write to a specific calendar that i own and manage in my
> E-mail Account.  To ask  simply, " how to write events to Non default"
> ?
>
> regards,
> Srini sk
>
> On Dec 12, 11:02 pm, "Srini" <[EMAIL PROTECTED]> wrote:
>> hi Jake,
>>
>> In below code, when i loop through i get my non default calendar..
>> But when i use   calEntry.getSelfLink().getHref() for posting  
>> event it
>> repon throws error.o get your
>> if i use "<googlesite>feed/<USERID>@gmail.com/<Magic URL> still it
>> gives error
>>
>> If i replace getEditLink i see null pointers . If i use "Magic URL" i
>> get Bad URI error. I thought we can post to "Magic URL"..
>>
>> Can you let me know what is problem in below
>>
>>    URL calendarsUrl = new URL(CALENDAR_FEEDS_URL + "/default");
>>
>>    new
>> CalendarFeed().declareExtensions 
>> (calendarService.getExtensionProfile());
>>    CalendarFeed feed = calendarService.getFeed(calendarsUrl,
>> CalendarFeed.class);
>>    out.println("List of calendars for account:");
>>    for(int entry_i = 0; entry_i < feed.getEntries().size(); entry_i 
>> ++)
>>    {
>>      CalendarEntry calEntry = feed.getEntries().get(entry_i);
>>      String calFeedEntry = calEntry.getTitle().getPlainText();
>>         if ( calName.equalsIgnoreCase(calFeedEntry))
>>      {
>>          return (calEntry.getSelfLink().getHref()) ;
>>         }
>>    }
>>
>> Better still , if you have  a wrapper for access to non default  
>> calndar
>> , can you pls post
>>
>> regards,
>> Srini sk
>
>
> >


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