BigW Consortium Gitlab

Commit 8b2986df by Tarun Bhardwaj

Allow adding of token and secret while initializing request_oauth

parent 185eddaa
......@@ -4,9 +4,9 @@ from requests_oauthlib import OAuth1Session
class EtsyOAuthClient(OAuth1Session):
def __init__(self, oauth_consumer_key,
oauth_consumer_secret, etsy_env=EtsyEnvProduction()):
oauth_consumer_secret, etsy_env=EtsyEnvProduction(), **kwargs):
super(EtsyOAuthClient, self).__init__(
oauth_consumer_key, oauth_consumer_secret)
oauth_consumer_key, oauth_consumer_secret, **kwargs)
self.request_token_url = etsy_env.request_token_url
self.access_token_url = etsy_env.access_token_url
self.signin_url = etsy_env.signin_url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment