A CakePHP Plugin for interacting with 3scale.net.
Download the source code from github: https://github.com/robksawyer/CakePHP-ThreeScale.git and place it in the Plugins folder.
If you're using Composer, run the following to install dependencies.
composer install
Otherwise, you can download the api from https://github.com/3scale/3scale_ws_api_for_php.
Navigate to the newly created clone and edit the bootstrap.php file within Config/bootstrap.php. The contents should look like:
$threescale = array(
'Threescale' => array(
'provider_key' => getenv('THREE_SCALE_PROVIDER_KEY'),
'app_id' => getenv('THREE_SCALE_APP_ID'),
'app_key' => getenv('THREE_SCALE_APP_KEY'),
'endpoint' => getenv('THREE_SCALE_ENDPOINT'),
'account_id' => getenv('THREE_SCALE_ACCOUNT_ID')
)
);
Add the ThreeScale component to any controller that you'd like to use it in. Afterwards, you should have access to all of the api methods via a command like: $this-ThreeScale->Client->authorize('YOUR ID','YOUR KEY');
Copyright (c) 2013 Rob Sawyer.
Licensed under The MIT License
Redistributions of files must retain the above copyright notice.