Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created December 6, 2011 15:45
Show Gist options
  • Save grahamc/1438636 to your computer and use it in GitHub Desktop.
Save grahamc/1438636 to your computer and use it in GitHub Desktop.
Robocall a whole bunch of people from PayPal about this Regretsy disaster.
<?php
// Note: CA state law says no robocalls before 9AM, so wait until 12PM EST.
$sid = 'Your SID';
$token = 'Your Token';
$telephoneNumber = 'Your Telephone Number, the one that Twilio gives you.';
$client = new Services_Twilio($sid, $token);
// More PayPal telephone numbers here: http://consumerist.com/2008/06/all-the-secret-paypalebay-email-addresses-and-phone-numbers-you-could-ever-want.html#.Tt1m77VTojs.twitter
$numbers = array(
4029528691,
4029352238,
4029352116,
4029528691,
4029352172,
4029528902,
4029352268,
4029355146,
4029352399,
4029355145,
4029352174,
4029352229,
4029355163,
4029355073,
4029352157,
4029353533,
4029352331,
4029383532,
4029352114,
4029352212,
4029352284,
4029352295,
4029352255,
4029352256,
4029352257,
4029352328,
4029352333,
4029352114,
4029352212,
4029352284,
4029352295,
4029352223,
4029352250,
4029352275,
4029352332,
4029355140,
4029352029,
4029355126,
4029355197,
4029352165,
4029352396,
4029355181,
4029352015,
4029352141,
4029352152,
4029352189,
4029352340,
4029352063,
4029352064,
4029352116,
4029352129,
4029352156,
4029352157,
4029352172,
4029352173,
4029352174,
4029352192,
4029352128,
4029352228,
4029352238,
4029352268,
4029352269,
4029352334,
4029355145,
4029355146,
4029355163,
4029352112,
4029352207,
4029352371,
4029352239,
4029352267,
4029352272,
4029352366,
4029352368,
4029355134,
4029352044,
4029352127,
4029352048,
4029352051,
4029352128,
4029352169,
4029352283,
4029352318,
4029352339,
4029355128,
4029352001,
4029352004,
4029352026,
4029352032,
4029352069,
4029352299,
4029355100,
4029355151,
4029355149,
4029355168,
4029355184,
4029352274,
4029352321,
4029352357,
4029355161,
4029355169,
4029352074,
4029352226,
4029352034,
4029352132,
4029352241,
4029352251,
4029352266,
4029352353,
4029355120,
4029355141,
4029352218,
4029355172,
4029352002,
4029352005,
4029352010,
4029352013,
4029352018,
4029352020,
4029352028,
4029352039,
4029352040,
4029352041,
4029352049,
4029352052,
4029352054,
4029352055,
4029352061,
4029352062,
4029352066,
4029352073,
4029352086,
4029352087,
4029352091,
4029352095,
4029352098,
4029352099,
4029352101,
4029352103,
4029352104,
4029352110,
4029352113,
4029352115,
4029352118,
4029352119,
4029352123,
4029352125,
4029352126,
4029352134,
4029352136,
4029352138,
4029352142,
4029352149,
4029352150,
4029352154,
4029352158,
4029352168,
4029352170,
4029352171,
4029352175,
4029352178,
4029352179,
4029352181,
4029352182,
4029352183,
4029352184,
4029352186,
4029352187,
4029352188,
4029352201,
4029352203,
4029352204,
4029352205,
4029352206,
4029352216,
4029352217,
4029352224,
4029352225,
4029352227,
4029352129,
4029352229,
4029352230,
4029352234,
4029352236,
4029352237,
4029352240,
4029352244,
4029352246,
4029352253,
4029352254,
4029352259,
4029352264,
4029352265,
4029352271,
4029352273,
4029352276,
4029352281,
4029352288,
4029352291,
4029352298,
4029352302,
4029352305,
4029352308,
4029352316,
4029352317,
4029352322,
4029352324,
4029352335,
4029352336,
4029352341,
4029352342,
4029352349,
4029352350,
4029352351,
4029352358,
4029352363,
4029352364,
4029352365,
4029352367,
4029352369,
4029352370,
4029352372,
4029352375,
4029352376,
4029352377,
4029352381,
4029352386,
4029352387,
4029352391,
4029352392,
4029352393,
4029352394,
4029352395,
4029352397,
4029352399,
4029355103,
4029355105,
4029355106,
4029355108,
4029355111,
4029355113,
4029355115,
4029355116,
4029355117,
4029355121,
4029355123,
4029355129,
4029355133,
4029355136,
4029355138,
4029355144,
4029355147,
4029355152,
4029355156,
4029355164,
4029355165,
4029355171,
4029355175,
4029355148,
4029355176,
4029355178,
4029355179,
4029355185,
4029355186,
4029355187,
4029355189,
4029355192,
4029355194,
4029355195,
4029355196
);
foreach ($numbers as $number) {
$call = $client->account->calls->create($telephoneNumber, $number,
'https://raw.github.com/gist/9c4e2f8b94f3cb850312/1fe66cf6126089cf6cf98fa0320206229fcb8036/twilio.xml'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment