Skip to main content
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

Release files for globelabs 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for globelabs 0.0.3
File Size Uploaded
globelabs-0.0.3.tar.gz 2.1 kB Details

Release files / globelabs-0.0.3.tar.gz

Download URL globelabs-0.0.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5466c4b3214ab313a24e371751c7fe8b72e862be59a7408708c8c76e07c01394
BLAKE2b-256 checksum
How to use checksums
b491a3480ef0f4c6feecfe2dbc9bc8092c81adaf774f79cd06bfe4d168fe1e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page