NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Reducing it down to something easier to run ... (Score:1)
This
perl -MData::Dumper -MNet::Twitter -sle'BEGIN{ print "$user => $pass" } print Dumper( Net::Twitter->new( user => $u, pass => $pass)->user_timeline() )' -- -user=perigrin -pass=ImSol33tgives me the same error while
perl -MData::Dumper -MNet::Twitter -sle'BEGIN{ print "$user => $pass" } print Dumper( Net::Twitter->new( user => $u, pass => $pass)->user_timeline({count => 3) )' -- -user=perigrin -pass=StillL33tdoes not (although it doesn't return usable data eithe
Re: (Score:1)
broken? (Score:1)
http://twitter.com/statuses/friends_timeline.json [twitter.com] prompts for authentication in a browser but
http://twitter.com/statuses/user_timeline.json [twitter.com] doesn't.
I'm stumped (Score:1)
Re: (Score:2)
Thanks for the update. I was going to file a bug report, but wanted to make sure I wasn't doing something stupid, first. I've filed a bug with Twitter. Hopefully I'll hear something, too.
Re: (Score:1)
use MIME::Base64;
$conf{ua}->default_header( "Authorization" => "Basic " . encode_base64( $conf{"username"} . ":" . $conf{"password"} ) );
Re: (Score:1)
Familiar (Score:2)
I use the module for the "cpan_linked" Twitter-bot that spools out CPAN upload notices with links to the page and (when findable) the Changelog. I've had a lot of problems that when examined closely were pretty clearly not the fault of Net::Twitter, but rather the, err, twits themselves.
For example, when the bot tries to send an update while Twitter is down, it gets a response of "500 Server Error".
In the message body.
The response code/message is not indicative of an error.
--rjray
dunno if you had success with this (Score:2)
But I found two things:
1) user_timeline() returns an arrayref, not an array (docs are unclear)
2) If you pass an ID explicitly to user_timeline() it seems to work, even if the ID is the same as the authenticating user and is therefore redundant. For instance, this works: