pip install simplyhosting-api-client
import 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 [email protected]:BernardoSilva/simplyhosting-api-client-python.git
python setup.py install
git clone [email protected]:BernardoSilva/simplyhosting-api-client-python.git
python setup.py develop
python setup.py test
If you want to run this project on multiple environments you need ot install tox package.
python -m pip install tox
and then just run tox command from the root of the project
tox
Just 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