skip to Main Content

Why 'api' is not defined? (beginner) – Twitter API

I think i defined 'api' as twitter.api, idk why this error is happening code: import twitter def auth(): api = twitter.Api(consumer_key='CsqkkrnhBZQMhGLpnkqGqOUOV', consumer_secret='jzbWgRLZqIyJQjfh572LgbtuifBtXw6jwm1V94oqcQCzJd7VAE', access_token_key='1300635453247361031-EWTTGf1B6T2GUqWmFwzLfvgni3PoVH', access_token_secret='U2GZsWT0TvL5U24BG9X4NDAb84t1BB059qdoyJgGqhWN4') auth() api.PostUpdate('Hello World') error: Traceback (most recent call last): File "C:/Users/Xtrike/AppData/Local/Programs/Python/Python37/twitter python.py", line 11, in <module>…

VIEW QUESTION
Back To Top
Search