pip install simplyhosting-api-clientimport simplyhosting
simplyClient = simplyhosting.Client(api_key='xxx', api_secret='your-api-secret')
response = simplyClient.user.ping.post()This API client is using a fluent interface where you can chain the API endpoints as if they were attributes of the client.
Create ticket example
simplyClient = simplyhosting.Client(api_key='xxx', api_secret='your-api-secret')
response = simplyClient.support.createTicket.post({'subject':'My ticket!', 'text':'My ticket body!'})
git clone git@github.com:BernardoSilva/simplyhosting-api-client-python.git
python setup.py installgit clone git@github.com:BernardoSilva/simplyhosting-api-client-python.git
python setup.py developpython setup.py testIf you want to run this project on multiple environments you need ot install tox package.
python -m pip install toxand then just run tox command from the root of the project
toxJust check the issues list and open a Pull Request to help us improve this library.
If you find any problem or have a suggestion open a new issue