ClientLogin doesn't have the notion of multi-scopedtokens.  You have to
acquire a token (login) for each service.

Eric

On Fri, Apr 10, 2009 at 10:37 AM, Gelembjuk <tower....@gmail.com> wrote:

>
> Thanks.
> But i will not use  AuthSub. I use login as for "installed"
> application.
> How to request multi-scoped token in this case?
>
> On 10 Кві, 20:30, Eric Bidelman <api.e...@google.com> wrote:
> > Yep.  You'll need to authenticate to both services.
> > For ClientLogin, that involves creating a $client
> > for each API and instantiating a new Zend_Gdata_Docs
> > object with each $client.
> >
> > However, you really should be using AuthSub since
> > you're in a web app.  With AuthSub, just request a
> > multi-scoped token for both scopes and you're set :)
> >
> > Eric
> >
> > On Fri, Apr 10, 2009 at 7:40 AM, Gelembjuk <tower....@gmail.com> wrote:
> >
> > > Hello.
> > > I am developing php application that will export documents from Google
> > > docs.
> > > Application must to download document (doc,ppt,xls) from account and
> > > save it.
> > > I am successed with doc and ppt. But have problems with xls.
> > > I think problem is because docs and ppts are downloaded from
> > > docs.google.com and xls from spreadsheets.google.com .
> >
> > > Maybe i must to provess Auth on spreadsheets.google.com too.
> >
> > > How to do this?
> >
> > > In manual i have found "Note: If you wish to use the same OAuth/
> > > AuthSub token to download both documents and spreadsheets, you will
> > > need to request a token that works in both the docs.google.com and
> > > spreadsheets.google.com scope.)"
> >
> > > To to request this token?
> >
> > > I use php library.
> > > To do auth i do:
> > > $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
> > > $client = Zend_Gdata_ClientLogin::getHttpClient($this->user_login,
> > > $this->user_password, $service);
> > > $gdocs = new Zend_Gdata_Docs($client);
> >
> > > Maybe i must to do something with $client object before creating Docs
> > > object.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to