A minimal python library to access Nutshell CRM:s JSON-RPC API.
pip install nutshellFirst create a Nutshell APIKEY. Then use the e-mail address of one of your existing nutshell users as the USERNAME (Note that nutshell allows one user to have multiple e-mail addresses; the API requires that you use the primary one).
fromnutshellimportNutshellAPIUSERNAME="example@example.com"APIKEY="000000000000000000000000000000000000000000000"api=NutshellAPI(USERNAME, APIKEY)
accounts=api.findAccounts()
foraccountinaccounts:
print("-"*80)
print("Account:")
forfield, valueinaccount.items():
print("%30s: %s"% (field, value))The api object converts all method calls on it to JSON-RPC calls against Nutshell's API. The API documentation has a list possible calls, including parameters.
python setup.py test