in reply to Re: How do I use curl with perl and Twitter
in thread How do I use curl with perl and Twitter
So, then if I use something like this, it should work?
The API url defaults to http://twitter.com, and I assume that the apihost, would be the remainder of the REST call, and by calling show_user, instead of show_user(id) -- while using an apihost that terminates with .xml, I am guaranteed a response that's an xml string. The documentation was not clear on what format I should expect if I use show_user(id), which would assume the default apihost.my $nt = Net::Twitter->new( traits => [qw/API::REST/], username => $username, password => $pwd, apihost => "/users/show/".$TwitterID.".xml" ); my $result = $nt->show_user;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How do I use curl with perl and Twitter
by Corion (Patriarch) on Jul 21, 2009 at 06:31 UTC | |
by northwestdev (Acolyte) on Jul 21, 2009 at 07:24 UTC | |
by Corion (Patriarch) on Jul 21, 2009 at 07:32 UTC | |
by northwestdev (Acolyte) on Jul 21, 2009 at 20:15 UTC | |
by davorg (Chancellor) on Jul 21, 2009 at 22:16 UTC | |
Re^3: How do I use curl with perl and Twitter
by davorg (Chancellor) on Jul 21, 2009 at 15:15 UTC | |
by northwestdev (Acolyte) on Jul 21, 2009 at 17:40 UTC | |
by northwestdev (Acolyte) on Jul 21, 2009 at 19:50 UTC | |
by davorg (Chancellor) on Jul 21, 2009 at 22:13 UTC |
In Section
Seekers of Perl Wisdom