Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import twitter
- api = twitter.Api(username='****', password='*****')
- api.PostDirectMessage('testuser', 'test')
- ----------------------------------------------
- Traceback (most recent call last):
- File "dmessage.py", line 3, in <module>
- api = twitter.Api(username='****', password='*****')
- AttributeError: 'module' object has no attribute 'Api'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement