MCPcopy Index your code
hub / github.com/geekcomputers/Python / initialize_api

Function initialize_api

tweeter.py:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def initialize_api():
44 ck = "your_consumer_key"
45 cks = "your_consumer_key_secret"
46 at = "your_access_token"
47 ats = "your_access_token_secret"
48
49 auth = tweepy.OAuthHandler(ck, cks)
50 auth.set_access_token(at, ats)
51 api = tweepy.API(auth)
52 user = api.me()
53 return api, user
54
55
56def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected