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
- Copy your_api.json to new my_api.json file and update with your API key details
Usage
- Import the sections you'll be using
- Create an object from API Class
- 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()
>>> 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()
>>> myAct.conditions = 'opportunity/id=1250'
>>> allActivities = myAct.get_activities()
>>> for oneAct in allActivities:
>>> print(oneAct.name)
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(21.9 kB
view details)
Built Distribution
File details
Details for the file connectpyse-0.4.4.tar.gz
.
File metadata
- Download URL: connectpyse-0.4.4.tar.gz
- Upload date:
- Size: 21.9 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.2.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d3747b786b0003b4879b1859187a95a3b5fa4f5cd0af7baa3c8e269aeee335c |
|
MD5 | 4d2c1c4e9bf746d7e10a994fca719d07 |
|
BLAKE2b-256 | b6608181591c3be771a4e790746497a883e6e324cbc92e5784e9153a064bd1da |
Provenance
File details
Details for the file connectpyse-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: connectpyse-0.4.4-py3-none-any.whl
- Upload date:
- Size: 74.8 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.2.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50cd0007f90023cba8de3c18b75263e7609bc0cd160e9ca94a83334657d68f75 |
|
MD5 | 1ce9b1a3b78fd327eea032715a09a625 |
|
BLAKE2b-256 | dc9442d4e4d1aa189bb8f4f23b36d080a9d99186b772b320e512c2ceebcbb527 |