kulpa / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

let oauth2client authorize customized httplib2.Http object #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enhancement:

* Current functionality:

Once you've got an oauth2 decorator you can use it to obtain authorized http 
objects via the http() method but these are stock httplib2.Http objects.

* Desired functionality:

Adjust the OAuth2Decorator.http() method to take an existing httplib2.Http 
object and authorize that one.

* Patch: attached.

Original issue reported on code.google.com by warlock.cc on 9 Mar 2012 at 1:31

Attachments:

GoogleCodeExporter commented 9 years ago
In the short term you can do:

decorator.credentials.authorize(http)

Original comment by jcgregorio@google.com on 16 Mar 2012 at 7:45

GoogleCodeExporter commented 9 years ago
This can be done with the current functionality as shown in the previous 
comment.

Original comment by jcgregorio@google.com on 14 Jun 2012 at 7:33