Subject: | Bad request with new_direct_message |
Date: | Thu, 5 Jun 2008 16:19:39 +0100 |
To: | bug-Net-Twitter [...] rt.cpan.org |
From: | Justin Hayes <justin.hayes [...] orbisuk.com> |
First of all thanks for a very useful module!
I'm trying to send a new direct message using the following code:
my $twit = Net::Twitter->new(username=>"<user>", password=>"<pass>" );
$result = $twit-
Show quoted text
>new_direct_message(user=>"<otheruser>",text=>"TestMessage");
This is giving me 400 - Bad Request as the response.
However I can make the request via curl:
curl -u <user>:<pass> http://twitter.com/am:0rbisupp0rt -d
user="<otheruser>" -d text="TestMessage" http://twitter.com/direct_messages/new.json
It might be that I'm just using your module wrongly. I can make
updates fine however so I'm a bit lost.
Any help much appreciated!
Justin
------------------------------------------------------
Justin Hayes
Support Manager
justin.hayes@orbisuk.com