/ConnectPyse

ConnectWise (Manage) REST API client written in Python 3.x

Primary LanguagePythonMIT LicenseMIT

PLEASE NOTE: THIS PROJECT IS NO LONGER MAINTAINED - please check out one of the forks!!

ConnectPyse

ConnectWise (Manage) REST API client written in Python 3.x

ConnectWise RESTful API Client

Following the layout style of the official SDKs from CW team. Classes and their API counter part classes are under their appropriate sections. Import the API class(es) you want to leverage and the model classes are imported with them.

Setup

  1. Copy your_api.json to new my_api.json file and update with your API key details

Usage

  1. Import the sections you'll be using
  2. Create an object from API Class
  3. Leverage member methods to access features

For example to get a Member's office phone number you would:

>>> from connectpyse.system import members_api
>>> members_api = MembersAPI()
>>> a_member = members_api.get_member_by_id(123)
>>> print(a_member.officePhone)

Installation notes

The uJSON dependency needs cl.exe to be added to your path. This is a part of Visual Studio For VS 2015, add the following folder to PATH C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin If you receive the error "fatal error LNK1158: cannot run 'rc.exe'", add this to PATH: C:\Program Files (x86)\Windows Kits\8.0\bin\x86