Created
March 24, 2011 04:40
-
-
Save s-aska/884589 to your computer and use it in GitHub Desktop.
Twitter URL API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use WebService::Simple; | |
print WebService::Simple->new( | |
base_url => 'http://urls.api.twitter.com/1/urls/count.json', | |
response_parser => 'JSON' | |
)->get( { url => shift } )->parse_response->{count}, "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment