Hi,

Unfortunately, the private token can only be retrieved manually (for obvious
security reason).  For your scenario, perhaps you can consider using a
different embeddable solution, try the open source project CalVis -

http://code.google.com/apis/calendar/articles/calvis.html

Cheers,
Austin

On Mon, Jul 21, 2008 at 4:43 PM, CJ <[EMAIL PROTECTED]> wrote:

>
> Yes, the link would work!
> But, the question is: how does the application knows about this link
> automatically without the user's input.
> In other words, because I am using authsub, how to get this link
> programmatically.
> Thanks
> CJ
>
> On Jul 21, 1:48 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > You can use the private token (pvttk) URL parameter, the embedded URL
> would
> > look like this
> >
> >
> http://www.google.com/calendar/[EMAIL 
> PROTECTED]&pvttk=c58d33eb836ea694c2226d5d8c05xy
> >
> > This enables a private calendar to be loaded as long as you supply the
> > private token associated with that calendar.
> >
> > You can look up the private token for your calendar with following steps
> -
> >
> > 1) go to calendar.google.com click on the "Settings" on the top right
> > 2) choose the "Calendars" tab
> > 3) click on your target calendar
> > 4) scroll down to the Private Address section and select the XML button.
> The
> > feed URL appears.
> > 5) The feed URL looks like this -
> >
> >
> http://www.google.com/calendar/feeds/[EMAIL 
> PROTECTED]/private-c58d33eb836ea694c2226d5d8c05xy/basic
> <http://www.google.com/calendar/feeds/uinpq82hkgqtpajd1tra9fe2po%40gro...>
> >
> > 6) notice the part, private-[LONG_STRING].  The LONG_STRING is the
> private
> > token for this calendar
> >
> > Hope that helps,
> > Austin
> >
> >
> >
> > On Sat, Jul 19, 2008 at 1:40 PM, CJ <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, guys
> > > I have to ask a favor from you guys.
> > > I am writting a small test project which combines authsub and
> > > calendar. Previously, I set the my calendar as public so that I can
> > > simply put a line
> > > <iframe src="http://www.google.com/calendar/embed?
> > > [EMAIL PROTECTED]&ctz=<
> http://www.google.com/calendar/[EMAIL PROTECTED]&ctz=><%=
> > > lc2.getUser().getTimezoneid() %>"
> > > frameborder="0" scrolling="no" style="border:0; width:640px; height:
> > > 515px;"></iframe>
> > > in my jsp file.
> >
> > > But, later on, I switched my calendar from public to private (no
> > > sharing). No surprise, my old method does not work anymore.
> >
> > > So, can anybody points out the appropriate way to do it?
> >
> > > Best
> > > CJ- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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