Advertisement
Guest User

Untitled

a guest
May 29th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import twitter
  2.  
  3. api = twitter.Api(username='****', password='*****')
  4. api.PostDirectMessage('testuser', 'test')
  5.  
  6.  
  7. ----------------------------------------------
  8. Traceback (most recent call last):
  9.   File "dmessage.py", line 3, in <module>
  10.     api = twitter.Api(username='****', password='*****')
  11. AttributeError: 'module' object has no attribute 'Api'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement