GithubHelp home page GithubHelp logo
GlobeLabs API Python Client
===========================

Installation
------------

```
$ pip install globelabs
```

Usage
-----

Sample usage with flask.

```
from globelabs import Globe


app_id = "BGyKAhGbyoGhRdiA8kTyMXhR9yGEhzoa"
app_secret = "8ed742b6c27e38db323ab24e19460a38eb0bf52804fc08f4df897db206b7b690"
shortcode = "1027"
globe = Globe(app_id=self.app_id,
              app_secret=self.app_secret,
              shortcode=self.shortcode)


@app.route('/login')
def login():
    return redirect(globe.get_auth_url())


@app.route('/redirect_callback')
def redirect_callback():
    r = globe.get_access_token(request.args.get('code'))
    ac = r['access_token']
    subscriber_number = r['subscriber_number']
    return redirect(url_for('.home'))


@app.route('/charge')
def charge():
    globe.charge(0, "2158%s0000099" % self.shortcode)

```

TODO
----

* Need help with documentation! :D

Globe Labs's Projects

api icon api

Globe Labs APIs (2013)

pyglobe icon pyglobe

Python Interface For Globe Labs API

sms-tweet icon sms-tweet

Using Globe Labs SMS API to update contents of a Django website.

tropo-samples icon tropo-samples

Sample applications for the Tropo.com cloud communications service.

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.