Skip to content

Cleanazz/CodeIgniter-Twilio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

======================================
Twilio CodeIgniter Library

by Ben Edmunds
======================================

A basic Twilio REST API CodeIgniter library wrapper using the PHP class provided by Twilio.


WARNING:
Sorry I don't use or support this library anymore.  Use at your own risk.  You can check the official PHP SDK here: https://github.com/twilio/twilio-php


SETUP:
Just drop the files in their appropriate folders (ie "libraries/twilio.php" goes in your "libraries" folder) and add your settings in the "config/twilio.php" file.


NOTES:
All calls to the rest class are routed through the library class, so for example:

instead of:
$client = new TwilioRestClient($AccountSid, $AuthToken);
$response = $client->request("/$ApiVersion/Accounts/$AccountSid/Calls", "POST", $data); 

you would do something like:
$this->load->library('twilio');
$this->twilio->request("/$ApiVersion/Accounts/$AccountSid/Calls", "POST", $data);




-Ben Edmunds
 ben.edmunds@gmail.com
 @benedmunds 

About

CodeIgniter library wrapper for the Twilio API class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%