STEMcoffee / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

Direct Messages failing #253

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. authenticate, verify authentication
2. send direct message to person following you
3. errors with page does not exist, error 34

What is the expected output? What do you see instead?
I expect to send a direct message (this has been working consistently until 3 
days ago

What version of the product are you using? On what operating system?
I am running python-twitter 1.0 with python 2.65 on ubuntu 10.04

Please provide any additional information below.

this is code that gets a status update from an xbee module, and tweets me the 
status changes.  It's been in operation from january with no code changes.  I 
am doing oauth authentication and can verify friends and post general updates, 
it just seems to be direct messages that fail.  the call looks like 
api.PostDirectMessage(user,status)  I've also reversed it to (status,user)

thanks!

Original issue reported on code.google.com by wagner....@gmail.com on 13 Jun 2013 at 3:56

GoogleCodeExporter commented 8 years ago
The call for PostDirectMessage has changed in API 1.1. Call it with screen_name 
or user_id parameter (depending on what you have in your "user" variable). Like 
this:

api.PostDirectMessage(status, screen_name=user)

Original comment by sebastia...@gmail.com on 13 Jun 2013 at 4:39

GoogleCodeExporter commented 8 years ago
Hey, that worked great!
ahhh, I see that in the pydoc, I just throught it could be anything there, not 
a pre-defined variable.

Sorry, this wasn't a defect, is there a message board that is better for these 
sorts of questions?

Original comment by wagner....@gmail.com on 13 Jun 2013 at 5:36

GoogleCodeExporter commented 8 years ago
python-twitter@googlegroups.com

Original comment by bear42 on 13 Jun 2013 at 5:52