Code Monkey home page Code Monkey logo

cakephp-threescale's Introduction

CakePHP-ThreeScale

A CakePHP Plugin for interacting with 3scale.net.

Installation

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

Usage

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

Legal

Copyright (c) 2013 Rob Sawyer.

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.

cakephp-threescale's People

Contributors

robksawyer avatar

Watchers

 avatar James Cloos avatar

Forkers

peetersdiet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.