A simple implementation of the Twitter Application-only authentication
Project description
twitter-application-only-auth
=============================
A simple implementation of the Twitter Application-only authentication
https://dev.twitter.com/docs/auth/application-only-auth
that offers applications the ability to issue authenticated requests on behalf
of the application itself (as opposed to on behalf of a specific user).
Tested with Python 2.6, 2.7, 3.2, 3.3 and 3.4
[![Build Status](https://travis-ci.org/pabluk/twitter-application-only-auth.png)](https://travis-ci.org/pabluk/twitter-application-only-auth)
[![Coverage Status](https://coveralls.io/repos/pabluk/twitter-application-only-auth/badge.png)](https://coveralls.io/r/pabluk/twitter-application-only-auth)
Install
-------
```
pip install twitter-application-only-auth
```
Usage
-----
```python
import json
from application_only_auth import Client
# The consumer secret is an example and will not work for real requests
# To register an app visit https://dev.twitter.com/apps/new
CONSUMER_KEY = 'xvz1evFS4wEEPTGEFPHBog'
CONSUMER_SECRET = 'L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg'
client = Client(CONSUMER_KEY, CONSUMER_SECRET)
# Pretty print of tweet payload
tweet = client.request('https://api.twitter.com/1.1/statuses/show.json?id=316683059296624640')
print json.dumps(tweet, sort_keys=True, indent=4, separators=(',', ':'))
# Show rate limit status for this application
status = client.rate_limit_status()
print status['resources']['search']
```
Real-World use cases
--------------------
* [Tweet Dump](http://tweetdump.info/): dump and inspect your tweet data!
Authors and contributors
------------------------
* [Pablo Seminario](https://github.com/pabluk)
* [Rafael Reimberg](https://github.com/rreimberg) for the initial setup.py
* [Chris Hawkins](https://github.com/ChrisHawkins) for Python 3.4 support
=============================
A simple implementation of the Twitter Application-only authentication
https://dev.twitter.com/docs/auth/application-only-auth
that offers applications the ability to issue authenticated requests on behalf
of the application itself (as opposed to on behalf of a specific user).
Tested with Python 2.6, 2.7, 3.2, 3.3 and 3.4
[![Build Status](https://travis-ci.org/pabluk/twitter-application-only-auth.png)](https://travis-ci.org/pabluk/twitter-application-only-auth)
[![Coverage Status](https://coveralls.io/repos/pabluk/twitter-application-only-auth/badge.png)](https://coveralls.io/r/pabluk/twitter-application-only-auth)
Install
-------
```
pip install twitter-application-only-auth
```
Usage
-----
```python
import json
from application_only_auth import Client
# The consumer secret is an example and will not work for real requests
# To register an app visit https://dev.twitter.com/apps/new
CONSUMER_KEY = 'xvz1evFS4wEEPTGEFPHBog'
CONSUMER_SECRET = 'L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg'
client = Client(CONSUMER_KEY, CONSUMER_SECRET)
# Pretty print of tweet payload
tweet = client.request('https://api.twitter.com/1.1/statuses/show.json?id=316683059296624640')
print json.dumps(tweet, sort_keys=True, indent=4, separators=(',', ':'))
# Show rate limit status for this application
status = client.rate_limit_status()
print status['resources']['search']
```
Real-World use cases
--------------------
* [Tweet Dump](http://tweetdump.info/): dump and inspect your tweet data!
Authors and contributors
------------------------
* [Pablo Seminario](https://github.com/pabluk)
* [Rafael Reimberg](https://github.com/rreimberg) for the initial setup.py
* [Chris Hawkins](https://github.com/ChrisHawkins) for Python 3.4 support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for twitter-application-only-auth-0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ce32150395a5fe09ddea4f2f0d60c1a6f19894c2db8f79c45c8d71e2a1aeac |
|
MD5 | 9c8193d69913f80813db7125cba5251f |
|
BLAKE2b-256 | 4f2e2520b8fb86f0398acf74c8b2e380ed83894d46fa27c64e26f213d1594cff |