Skip to content

samhunta/fuel-contextio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuel ContextIO

A FuelPHP package wrapping around the ContextIO's official PHP-ContextIO class.

Documentation

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.

Usage

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 );

Examples

You can call any method from the official PHP-ContextIO library.

Here's how you would return an array of accounts

ContextIO::listAccounts()->getData();

About

FuelPHP package for ContextIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages