A FuelPHP package wrapping around the ContextIO's official PHP-ContextIO class.
Official documentation of the ContextIO API can be found at http://context.io/docs/2.0/
The official PHP-ContextIO library currently has no documentation but if needed can be easily obtained by parsing the docblocks in classes/context.io.php
with something like phpDocumentor.
Copy config/contextio.php
into your app/config/
directory and set the default access key and secret key.
You can now call any of the API methods on the ContextIO
object.
You can also use the object without the default configuration:
// Using these properties
ContextIO::forge(array(
'secret_key' => 'secret key goes here',
'access_key' => 'access key goes here',
));
// Or using these properties
ContextIO::forge( $access_key, $secret_key );
You can call any method from the official PHP-ContextIO library.
Here's how you would return an array of accounts
ContextIO::listAccounts()->getData();