I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-05-14 03:57:20-07 by znmeb
How many Twitter API calls does a method consume??
I've got a pretty simple script here:
#!/usr/bin/perl -w use strict; use Net::Twitter; my $username; my $password; my $friendname; my $handle = Net::Twitter->new({username=>$username, password=>$password}) or die $!; my $rate_limit_status = $handle->rate_limit_status(); my $public_timeline = $handle->public_timeline(); my $friends_ids = $handle->friends_ids({id=>'znmeb'}); my $followers_ids = $handle->followers_ids({id=>'znmeb'});


etc. The $username and $password are stored in 'login.pl'. It looks like these method calls are using anywhere from ten to 25 API calls each. I can only run this script a couple of times before the "rate_limit_status" is showing I have zero calls left. Am I doing something wrong?? I'll post some numbers in about an hour. :)
Direct Responses: 10866 | Write a response