Skip to content

BernardoSilva/simplyhosting-api-client-python

Repository files navigation

Simply Hosting API Client for Python

Build Status Coverage Status

How to install

pip install simplyhosting-api-client

How to use

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!'})

How to setup

git clone [email protected]:BernardoSilva/simplyhosting-api-client-python.git
python setup.py install

How to contribute

git clone [email protected]:BernardoSilva/simplyhosting-api-client-python.git
python setup.py develop

How to run tests

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

How to contribute

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

About

Simply Hosting API client

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages