What am I doing wrong here?
trying to tweet an url and a text to an account...

#!/usr/bin/perl

use Net::Twitter;

# necessary strings are available in environment...
$iurl = $ENV{iurl};
$itxt = $ENV{itxt};
$ckey = $ENV{ckey};
$csec = $ENV{csec};
$atok = $ENV{atok};
$asec = $ENV{asec};

# this used to work in pre-oauth days...
# my $twit = Net::Twitter->new(username=>$iusr, password=>$ipas );
# $result = $twit->update($iurl." ".$itxt);

my $client = Net::Twitter->new(
    consumer_key => $ckey,
    consumer_secret => $csec,
    access_token => $atok,
    access_secret => $asec,
);


$tweet=$iurl." ".$itxt;

my $res = $client->update({ status => $tweet });

it doesn't work and I'm no development whizzz.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en

Reply via email to