def __init__(self, consumer_key, consumer_secret):
     self.consumer = Consumer(key=consumer_key, secret=consumer_secret)
     self.client = Client(self.consumer)
     self.client.set_signature_method(sha1())
     self.base_uri = '2.0'
Exemple #2
0
 def __init__(self, consumer_key, consumer_secret, timeout=None):
     self.consumer = Consumer(key=consumer_key, secret=consumer_secret)
     self.client = Client(self.consumer, timeout=timeout)
     self.client.set_signature_method(sha1())
     self.base_uri = '2.0'