Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

perl twitter api

by danny0085 (Sexton)
on Apr 26, 2012 at 05:23 UTC ( [id://967236]=perlquestion: print w/replies, xml ) Need Help??

danny0085 has asked for the wisdom of the Perl Monks concerning the following question:

I try to update profiles picturs with perl twitter api

my $result = $nt->update_profile_image('tux.png');

but I get
HTTP/1.1 403 Forbidden There was a problem with your picture. Probably too big.

I tried with several images and the same result
PD: I also tried with a tiny image (<1kb) and the same. Maybe I am sending bad the parameters?

Replies are listed 'Best First'.
Re: perl twitter api
by afoken (Chancellor) on Apr 26, 2012 at 06:09 UTC
    There was a problem with your picture. Probably too big.

    Start by reading the error message. Try uploading a very tiny image, like the one generated by this script:

    #!/usr/bin/perl -w use MIME::Base64; open OUT,'>','tiny.gif' or die "ooops: $!"; binmode OUT; print OUT decode_base64('R0lGODlhAQABAPABAIor4v///yH5BAAAAAAALAAAAAABA +AEAAAICRAEAOw=='); close OUT;

    Read the API rules. Perhaps you have hit a usage limit.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: perl twitter api
by Anonymous Monk on Apr 26, 2012 at 06:10 UTC
    Twitter api?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found