Hi Trevor.

thanks for your advice.

The API you said need show redirect login page, right?

If so, I don't want to use AuthSub for Authorization.

I hope the user only can see pages under my control.

It's why I want to know How to use API with Token.

thanks.

On Sep 18, 9:57 am, "Trevor Johns" <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 17, 2008 at 3:50 AM, ducks <[EMAIL PROTECTED]> wrote:
>
> > I could get the Auth Token using ClientLogin by your help.
>
> > It seems include this Token to request header for private request.
>
> > but I want to use this Token with JavaScript Client Library.
>
> > I found this URL.http://code.google.com/apis/gdata/jsdoc/1.4/index.html
>
> > Maybe I could use func setHeaders() but I cannot understand how to use
> > it.
>
> > thank you.
>
> Hi Ducks,
> If you're using the JavaScript client library, there's no need to
> manage the token yourself. When you call google.accounts.user.login(),
> it handles the entire AuthSub login process for you.
>
> From the Google Calendar API JavaScript Developer's Guide:
>
> function logMeIn() {
>   scope = "http://www.google.com/calendar/feeds/";;
>   var token = google.accounts.user.login(scope);
>
> }
>
> function setupMyService() {
>   myService = new
> google.gdata.calendar.CalendarService('exampleCo-exampleApp-1');
>   logMeIn();
>
> }
>
> You can safely ignore the token variable after running 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