Created
January 22, 2014 12:24
-
-
Save pjf/8557856 to your computer and use it in GitHub Desktop.
Rickroll cmdline utility
This file contains hidden or 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/perl -w | |
use 5.010; | |
use strict; | |
use warnings; | |
use autodie; | |
use WWW::Twilio::API; | |
my $lucky_person = shift || die "Usage: $0 phone-number"; | |
my $rick = WWW::Twilio::API->new( | |
AccountSid => 'Your Account SID', | |
AuthToken => 'Your Auth Token', | |
); | |
my $response = $rick->POST( 'Calls', | |
From => 'Your Rickroll Number', | |
To => $lucky_person, | |
Url => 'Your Rickroll Server', | |
); | |
say $response->{content}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your RickRoll server only needs to return the following response:
(You can play Rick Astley from another location if you like.)