I downloaded the /examples in Net::Twitter, and they don't seem to
work.  There were 2 in that directory.  I've searched tons on Google,
and I've read both links on the dev.twitter.com site for perl, but
can't get those to work.  Maybe someone here can help?

My Twitter code does only a few things:

* gets direct messages
* searches for some keywords so that I can stream tweets on my site
* sends status updates with links to news items

That is, I don't ever login as any user other than myself.  My code
runs in perl on Linux.

The nuts and bolts of it are:

# Basic login
our $twit=Net::Twitter->new({username=>"mysite",
password=>"$acct{'mysite'}", source=>''});

# Search
my $ref = $twit->search({q=>"bike OR triathlon OR bicycle OR cycling
OR bmx cyclocross"});

# Update
$twit->update({status => $tweet});

although I was using this sometimes:

`/usr/bin/curl -u $user:$pswd -d "status=$status"
http://api.twitter.com/1/statuses/update.xml 1>/tmp/twitterCurl.
$user.out 2>&1`;

So the big question is, I have a consumer key and consumer secret -
how do I turn
this basic code into oAuth proper code?

Thanks!

David


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to