Пример #1
0
class TwitterAPI(object):
    def __init__(self):
        self.api = None
        self.auth = OAuthenicate()

    def get_api(self):
        self.api = API(self.auth.authenticate())
        return self.api
Пример #2
0
 def __init__(self):
     self.api = None
     self.auth = OAuthenicate()