Python wrapper for Fiesta's list management API.
The quickest way to install this package is with pip:
pip install -e git://github.com/fiesta/fiesta-python.git#egg=fiesta
Here is an extremely basic usage example to make sure everything is installed correctly:
from fiesta import FiestaAPI
fiesta = FiestaAPI()
print fiesta.hello()
# Should print {u'hello': u'world'}
Here is how you would create a group:
fiesta = FiestaAPI('your-client-id-here', 'your-client-secret-here')
group = FiestaGroup.create(fiesta, default_name='new-group' description='My new group!')
Here is how you would add new users to an existing group:
fiesta = FiestaAPI('your-client-id-here', 'your-client-secret-here')
group = FiestaGroup(fiesta, id='MyGroupID') # Group IDs look something like this: Ar4i3_yFstAyA9AA
new_user = group.add_member('test@example.com', member_display_name="Test User")
To run the tests, you'll need valid Fiesta client credentials (the tests connect to the Fiesta API sandbox). Create a file in the test/
directory called settings_test.py
with the following contents:
FIESTA_CLIENT_ID = 'your-client-id-here'
FIESTA_CLIENT_SECRET = 'your-client-secret-here'
The easiest way to run the tests is to install nose and run nosetests
.
This project is licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
- Handle errors!
- Handle OAuth for user auth
- Improve tests to cover cases. Mainly to cover tests for the wrapper throwing errors on bad input.
- Jeremy Blanchard (auzigog) - Initial list management wrapper features, original author of this project.