Skip to main content

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


Download files

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

Source Distribution

contact_space-0.1.9.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contact_space-0.1.9-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for contact_space-0.1.9.tar.gz
Algorithm Hash digest
SHA256 2b7db4b58a3231448e5bb04cf2f7ab6801f5045eaeecf426b325bd5d58126660
MD5 a012c7754e54bfb4fabcd351f1195f17
BLAKE2b-256 34b5616321e38c4682c9057b424a03061152466f4b6df67697b27841964d3245

See more details on using hashes here.

Provenance

The following attestation bundles were made for contact_space-0.1.9.tar.gz:

Publisher: main.yml on georgegburns/contactspace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for contact_space-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8e57a39176b01263b1e9474c2902a60204c5fae17a9c465f2284bccc6ed0df0e
MD5 9048466a4b010e48eb73f705693f9b1f
BLAKE2b-256 33e4bec8f88cdbd80c4412c4a3e1514b2e868820bc5d4d1e301a194bf7bd4517

See more details on using hashes here.

Provenance

The following attestation bundles were made for contact_space-0.1.9-py3-none-any.whl:

Publisher: main.yml on georgegburns/contactspace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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