Client helper to use RDStation API
$ pip install rd-client
In [1]: from rd_client import RDClient
In [2]: client = RDClient('client_id', 'client_secret', 'https://foo.bar')
In [3]: client.authorize()
In [4]: client.get('/marketing/account_info')
Out[4]:
{'name': 'Account Name'}
In [5]: Poetry it's an easy way no manage dependencies and build a package, you can see more here.
Download the project and install the dependencies
$ git clone https://github.com/rtician/rd-client
$ cd rd-client
$ poetry installRun the tests
$ poetry run py.test --cov-report term --cov=rd_client