Skip to main content

A ConnectWise API tool for the rest of us.

Project description

ConnectPyse

ConnectWise (Manage) REST API client written in Python 3.x The original project was created by Joshua M. Smith. This forked version was started by Mark Ciecior.

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 (old way)

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

Setup (new way)

  1. Create two variables which are passed to the constructor of the API classes.
  2. URL = 'https://connectwise.mycompany.com/v4_6_release/apis/3.0'
  3. AUTH = {'Authorization': 'Basic Wmdlasdkjfeklamwekf='}

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
>>> m = members_api.MembersAPI() #Assuming the my_api.json file has been updated
-or-
>>> from connectpyse.system import members_api
>>> m = members_api.MembersAPI(url=URL, auth=AUTH) #No my_api.json file necessary

>>> a_member = m.get_member_by_id(123)
>>> print(a_member.officePhone)

For example to find the name of all activities related to a particular opportunity you would:

>>> from connectpyse.sales import activity_api
>>> myAct = activity_api.ActivityAPI() #Assuming the my_api.json file has been updated
-or-
>>> from connectpyse.sales import activity_api
>>> myAct = activity_api.ActivityAPI(url=URL, auth=AUTH) #No my_api.json file necessary

>>> myAct.conditions = 'opportunity/id=1250'
>>> allActivities = myAct.get_activities()
>>> for oneAct in allActivities:
>>>   print(oneAct.name)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

connectpyse-0.4.9.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

connectpyse-0.4.9.1-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file connectpyse-0.4.9.1.tar.gz.

File metadata

  • Download URL: connectpyse-0.4.9.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for connectpyse-0.4.9.1.tar.gz
Algorithm Hash digest
SHA256 84ce580574705468367eeae49909dac7b018d4776a2f4e7695accdaecc5bfb85
MD5 bba970b0108b1c21d27c34a61f31525a
BLAKE2b-256 e717e0dcb428339e9a5d1a60efa2d788c5d75fc38cc4e84c41811b830aba83a8

See more details on using hashes here.

Provenance

File details

Details for the file connectpyse-0.4.9.1-py3-none-any.whl.

File metadata

  • Download URL: connectpyse-0.4.9.1-py3-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for connectpyse-0.4.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55d5c75e6b9d26c29d8a80607e082d50d05c946d3ecc55e20b46a66c981743f4
MD5 bb86acddfc65f404ea5b74b0c0e5fc9b
BLAKE2b-256 92a0ecdbfbf8dfdee231d728445e77020a365458af0342d5eab610d2f20f8741

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page