In order to run files located under this path you will need to follow a few short steps. Runing them is very easy :)
Once you choose the desired example you will need to:
Every example file contains the following block of the code:
# A 36 character long AccountSid is always required. It can be described
# as the username for your account
$account_sid = '{AccountSid}';
# A 34 character long AuthToken is always required. It can be described
# as your account's password
$auth_token = '{AuthToken}';{AccountSid} and {AuthToken} must be replaced with real credentials which you can find at TelAPI dashboard
if you are trying to run the Send SMS example you will need to update following block of the code:
$sms_message = $telapi->create('sms_messages', array(
'From' => '(XXX) XXX-XXXX',
'To' => '(XXX) XXX-XXXX',
'Body' => "This is an SMS message sent from the TelAPI PHP wrapper! Easy as 1, 2, 3!"
));where From and To must be valid phone numbers.
There are many ways to run the example code. To run it in terminal, perform the following commands:
You must have PHP 5.3 or greater installed in order to run any example!
cd telapi-php/examples
php send-sms.php