SDK to interact with the ContactSpace REST API
Project description
contact_space
An SDK to interact with the ContactSpace REST API
Documentation of API: https://documenter.getpostman.com/view/14510675/UVJhEabw#ab347a65-d28c-40f8-a0af-22647825318d
GitHub: https://github.com/georgegburns/contactspace
How to install
Installed via pip:
pip install contact-space
Features
Handles authorisation check and batches requests to meet API requirements
Example authentication
from contactspace import ContactSpace
api_key = "EXAMPLE_API_KEY"
url = "https://ukapithunder.makecontact.space/" # Update to region specific URL
auth = ContactSpace(api_key, url)
Stable methods:
- .create_call_api()
works with endpoints:
- CreateDataSet
- InsertRecord
- InsertNextRecord
- InsertRecordWithCallback
- .get_call_api()
works with endpoints:
- GetUsers
- GetAgentStatus
- GetInitiatives
- GetOutcome
- GetData
- GetDataWithAgent
- GetCallIDs
- .get_users()
returns users and agents
- .get_user_status()
returns status of passed userid
- .get_initiatives()
returns initiatives
- .get_outcomes()
returns outcomes for a passed initiativeid
- .get_data()
returns record data across a given period for a provided invitiative, with or without agent
- .create_datasets()
creates a series of datasets to be uploaded into
- .create_records()
uploads records into a passed datasetid
- .get_callids()
gets callids across a given period
- .get_records_from_callids()
gets record data from passed callids
- .get_records()
gets records across a given period regardless of initiative
Upcoming methods:
- update record/outcome/value
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contact_space-0.1.9.tar.gz.
File metadata
- Download URL: contact_space-0.1.9.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7db4b58a3231448e5bb04cf2f7ab6801f5045eaeecf426b325bd5d58126660
|
|
| MD5 |
a012c7754e54bfb4fabcd351f1195f17
|
|
| BLAKE2b-256 |
34b5616321e38c4682c9057b424a03061152466f4b6df67697b27841964d3245
|
Provenance
The following attestation bundles were made for contact_space-0.1.9.tar.gz:
Publisher:
main.yml on georgegburns/contactspace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contact_space-0.1.9.tar.gz -
Subject digest:
2b7db4b58a3231448e5bb04cf2f7ab6801f5045eaeecf426b325bd5d58126660 - Sigstore transparency entry: 227090972
- Sigstore integration time:
-
Permalink:
georgegburns/contactspace@842deb3c4603fe1becec4b086fc9603a33740a43 -
Branch / Tag:
refs/tags/v0.1.09 - Owner: https://github.com/georgegburns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@842deb3c4603fe1becec4b086fc9603a33740a43 -
Trigger Event:
push
-
Statement type:
File details
Details for the file contact_space-0.1.9-py3-none-any.whl.
File metadata
- Download URL: contact_space-0.1.9-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e57a39176b01263b1e9474c2902a60204c5fae17a9c465f2284bccc6ed0df0e
|
|
| MD5 |
9048466a4b010e48eb73f705693f9b1f
|
|
| BLAKE2b-256 |
33e4bec8f88cdbd80c4412c4a3e1514b2e868820bc5d4d1e301a194bf7bd4517
|
Provenance
The following attestation bundles were made for contact_space-0.1.9-py3-none-any.whl:
Publisher:
main.yml on georgegburns/contactspace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contact_space-0.1.9-py3-none-any.whl -
Subject digest:
8e57a39176b01263b1e9474c2902a60204c5fae17a9c465f2284bccc6ed0df0e - Sigstore transparency entry: 227090974
- Sigstore integration time:
-
Permalink:
georgegburns/contactspace@842deb3c4603fe1becec4b086fc9603a33740a43 -
Branch / Tag:
refs/tags/v0.1.09 - Owner: https://github.com/georgegburns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@842deb3c4603fe1becec4b086fc9603a33740a43 -
Trigger Event:
push
-
Statement type: