cdelfosse / 3scale_ws_api_for_python

3scale integration plugin for Python applications

Home Page:www.3scale.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation:

Standard distutils installation: unpack ThreeScale-2.0.tar.gz, and from ThreeScale-2.0 directory run

sudo python setup.py install

or you may put ThreeScalePY.py to the same directory as your program

Usage:

In short:

import ThreeScalePY

# USAGE:

# Authorize a transaction:

ThreeScalePY.ThreeScaleAuthorize("provider key", "app id", "app key").authorize()

# Report a transaction:

ThreeScalePY.ThreeScaleReport("provider key").report([{"app_id":"app id", "usage":{"hits":1, "max_value":5}}]

Legal:

Copyright (c) 2010 3scale networks S.L., released under the MIT license.

About

3scale integration plugin for Python applications

www.3scale.net

License:MIT License


Languages

Language:Python 100.0%