Wrapper around the latest Tuenti API.
Install using pip
, including any optional packages you want...
$ pip install python-tuenti
...or clone the project from github.
$ git clone git@juanriaza/python-tuenti.git
$ cd python-tuenti
$ pip install -r requirements.txt
With your credentials:
from tuenti import TuentiSocialMessenger
user = '[email protected]'
password = 'olakase'
t = TuentiSocialMessenger.from_credentials(user, password)
…or you can retrieve some auth data and save it for later…
auth_token, installation_id = t.get_auth_data()
…to use the API without your credentials:
t = TuentiSocialMessenger.from_auth_token(user, auth_token, installation_id)
And fire some requests:
# single request
data = t.request('Feed_getShareFeed', {'max': 20})
# with a shortcut
data = t.Feed_getShareFeed({'max': 20})
# multiple request
data = t.mrequest(('User_getRelationshipData'), ('Feed_getShareFeed', {'max': 20}), ...)
All the available requests are documented here.
$ ./test_tuenti.py
27th Nov 2013
- Shortcut for fire a request.
- Registration test fixed.
9th Jan 2012
- First release.