Skip to main content

An API library for NICE CXOne

Project description

NicePy

A python package for the CXOnce NICE/inContact API

This is a work in progress and currently far from complete in terms of endpoints. More will be added over time.

Installation

You can either install the package

pip install nicepy

or if you download the code, from the folder containing the setup.py, you can enter

pip install .

Functions that involve media may require one or both of ffprobe and ffmpeg to be in the system path. If you receive a file not found error this is likely the reason.

Configuration

  • In your project folder, create a file nicepy_config.json containing the following:
{
  "client_id" : "APP_ID",
  "client_secret" : "APP_SECRET",
  "username" : "USER_ID",
  "password" : "USER_SECRET",
  "APIVersion" : "28.0"
}

client_id and client_secret are the keys provided when registering an API app with NICE. username and password are the keys generated on a user account within NICE.

APIVersion if not set will default to v28.0. All endpoints with versioning (will) allow passing a version in the call.

Implemented Functions

  • Agents

    • GetAgents
    • GetAgentSkillAssignments
    • GetAgentStates
    • GetInactiveAgents
    • AgentByUUID
    • AgentByLogin
  • Contacts

    • GetContactDetails
    • GetMultiContactDetails
    • Fetch_Recording
    • Fetch_Recording_AudioSegment (Threaded)
    • AudioSegment_To
    • GetRecordingURL
    • GetContactStates
    • GetMultiContactStateHistory (Threaded)
    • GetCompletedContacts
    • IsFinalContact
  • Adherence

    • GetAdherenceData
  • Dispositions

    • GetDispositions

Usage Examples

To come

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

nicepy-1.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

NicePy-1.0.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file nicepy-1.0.0.tar.gz.

File metadata

  • Download URL: nicepy-1.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for nicepy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ce2f5d98ce0b3422675f22f8f92621f4e97cb6cbe755ccfcb77d7d3affc88058
MD5 545384573645946163c23408596980f7
BLAKE2b-256 feeee658713676d497fd63a2cf30b97685669834d8d19563e104a73484e816d5

See more details on using hashes here.

File details

Details for the file NicePy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: NicePy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for NicePy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89cf1a17449172d1924da79201be34e77d538e83390382286e28357e60cfba6f
MD5 f7944947b42d0d075f6bc56338e711e4
BLAKE2b-256 d6fc4428e14d74da9d1ea6502109331cc1168176d5db7695274a1b9530d03d0b

See more details on using hashes here.

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