Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Net::Twitter::Lite::WithAPIv1_1 bad request

by marto (Cardinal)
on Apr 17, 2017 at 09:57 UTC ( [id://1188115]=note: print w/replies, xml ) Need Help??


in reply to Net::Twitter::Lite::WithAPIv1_1 bad request

apiurl => 'http://api.twitter.com/1.1'

"Sorry, that page doesn’t exist!", so that's wrong. I don't have an apiurl in my working config:

my $twitter = Net::Twitter::Lite::WithAPIv1_1->new( access_token_secret => $config->{TWITTER_ACCESS_SECRET}, consumer_secret => $config->{TWITTER_CONSUMER_SECRET}, access_token => $config->{TWITTER_ACCESS_TOKEN}, consumer_key => $config->{TWITTER_CONSUMER_KEY}, user_agent => 'TwitterBotExample', ssl => 1, );

Update my code was based on this short tutorial.

Update: fixed link.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found