Subject: | [patch] Net::Twitter config parameter "source" |
Date: | Fri, 11 Jan 2008 12:16:25 +0100 |
To: | bug-Net-Twitter [...] rt.cpan.org |
From: | Jules <jules [...] zjuul.net> |
Hello Chris,
First of all: thanks for making Net::Twitter! It has made making my own
twitter shell rather easy.
I've made a patch (see attachment) to set the "source" name of the
client. This is needed to set the "from [source]" in stead of "from
web".
Code that can be used:
$t = $twit = Net::Twitter->new( source=>'twitsh',
username=>$username,
password=>$password);
Result (from a dump) -- HTTP headers look like this:
Content-Type: application/x-www-form-urlencoded
X-Twitter-Client-URL:: http://x4.net/twitter/meta.xml
X-Twitter-Client-Version:: 1.06
X-Twitter-Client:: Perl Net::Twitter
status=I+am+testing.&source=twitsh
My client can be found at http://web.zjuul.net/twitsh
(note: this does not contain the above code).
I'd appreciate it if you can include this functionality after the review
of my patch.
Thanks,
Jules
Message body is not shown because sender requested not to inline it.