imported patch kwargs
This commit is contained in:
@@ -798,14 +798,18 @@ class OAuth2Decorator(object):
|
|||||||
url = self.flow.step1_get_authorize_url()
|
url = self.flow.step1_get_authorize_url()
|
||||||
return str(url)
|
return str(url)
|
||||||
|
|
||||||
def http(self):
|
def http(self, *args, **kwargs):
|
||||||
"""Returns an authorized http instance.
|
"""Returns an authorized http instance.
|
||||||
|
|
||||||
Must only be called from within an @oauth_required decorated method, or
|
Must only be called from within an @oauth_required decorated method, or
|
||||||
from within an @oauth_aware decorated method where has_credentials()
|
from within an @oauth_aware decorated method where has_credentials()
|
||||||
returns True.
|
returns True.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
args: Positional arguments passed to httplib2.Http constructor.
|
||||||
|
kwargs: Positional arguments passed to httplib2.Http constructor.
|
||||||
"""
|
"""
|
||||||
return self.credentials.authorize(httplib2.Http())
|
return self.credentials.authorize(httplib2.Http(*args, **kwargs))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def callback_path(self):
|
def callback_path(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user