Skip to content

Commit

Permalink
Merge pull request #1 from jpf/master
Browse files Browse the repository at this point in the history
Updates to README
  • Loading branch information
Beans0063 committed May 2, 2012
2 parents 2c1da19 + cdd5ca7 commit d9f4aac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -3,8 +3,7 @@ Twilio Call Tracking Demo


Call tracking works with the Twilio API, so you'll need an account and phone Call tracking works with the Twilio API, so you'll need an account and phone
number at Twilio before you can get started. Twilio sells simple, pay as you number at Twilio before you can get started. Twilio sells simple, pay as you
go phone services, and you can sign up for a free account with $30 of free go phone services, sign up at [http://www.twilio.com](http://www.twilio.com).
credits at [http://www.twilio.com](http://www.twilio.com).


Installation Installation
============ ============
Expand Down

1 comment on commit d9f4aac

@kelenpc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: Invalid argument supplied for foreach() in /home/***_/_/call/call_tracking/include/config.php on line 27
Not sure what needs to be in the ( ) after foreach I've had a twilio account for over a year now but I'd really like to get this working. I'm directly hitting the Index.php and the above error is what I'm getting. Any suggestion would be helpful Thanks. If i open the index in an editor it's totally different? I just need some specific instructions here. Thanks again.

LINE 21 thru 35: class Util {
public static function get_all_twilio_numbers() {
global $ApiVersion, $AccountSid, $AuthToken;
$twilio_numbers=array();
$client = new TwilioRestClient($AccountSid, $AuthToken);
$response = $client->request("/$ApiVersion/Accounts/$AccountSid/IncomingPhoneNumbers", "GET"); // Get all twilio phone numbers
foreach($response->ResponseXml->IncomingPhoneNumbers->IncomingPhoneNumber AS $number){
$twilio_numbers[format_phone($number->PhoneNumber)]=$number->FriendlyName;
}
return $twilio_numbers;
}
}

?>

Please sign in to comment.