Skip to main content

This library allows for you to integrate with Five9 Cloud Contact Center using Python.

Project description

|License MIT| | |Build Status| | |Coverage| | |Code Climate|

============
Python Five9
============

This library allows you to interact with the Five9 Settings and Statistics Web
Services using Python.

* `Read The API Documentation <https://laslabs.github.io/python-five9>`_

Installation
============

Installation is easiest using Pip and PyPi::

pip install five9

If you would like to contribute, or prefer Git::

git clone https://github.com/LasLabs/python-five9.git
cd python-five9
pip install -r requirements.txt
pip install .

Usage
=====

Connect
-------

.. code-block:: python

from five9 import Five9

client = Five9('user', 'password')

Configuration Web Services
--------------------------

Documentation:

* `Five9 <http://webapps.five9.com/assets/files/for_customers/documentation/apis/config-webservices-api-reference-guide.pdf>`_
* `API Docs <https://laslabs.github.io/python-five9/AdminWebService.html>`_

Example Use:

.. code-block:: python

client.configuration.getSkills()
# Returns
[{
'description': None,
'id': 266184L,
'messageOfTheDay': None,
'name': 'TestSkill',
'routeVoiceMails': False
}]

Statistics Web Services
-----------------------

Documentation:

* `Five9 <http://webapps.five9.com/assets/files/for_customers/documentation/apis/statistics-webservices-api-reference-guide.pdf>`_
* `API Docs <https://laslabs.github.io/python-five9/SupervisorWebService.html>`_

A supervisor session is required in order to perform most actions provided in the
Supervisor Web Service. Due to this, a session is implicitly created before the
supervisor is used.

The session is created with the following defaults. You can change the parameters
by changing the proper instance variable on the `Five9` object:

+----------------------+------------------------+---------------+
| Five9 Parameter | Instance Variable | Default |
+======================+========================+===============+
| `forceLogoutSession` | `force_logout_session` | `True` |
| `rollingPeriod` | `rolling_period` | `Minutes30` |
| `statisticsRange` | `statistics_range` | `CurrentWeek` |
| `shiftStart` | `shift_start_hour` | `8` |
| `timeZone` | `time_zone_offset` | `-7` |
+----------------------+------------------------+---------------+

Example Use:

.. code-block:: python

# Setup a session - required for most things
client.supervisor.getUserLimits()
# Returns
{
'mobileLimit': 0L,
'mobileLoggedin': 0L,
'supervisorLimit': 1L,
'supervisorsLoggedin': 1L
}

Known Issues / Roadmap
======================

* The supervisor session options should be represented in a class and documented,
instead of the mostly undocumented free-form dictionary mapped to instance
variables.

Credits
=======

Images
------

* LasLabs: `Icon <https://repo.laslabs.com/projects/TEM/repos/odoo-module_template/browse/module_name/static/description/icon.svg?raw>`_.

Contributors
------------

* Dave Lasley <dave@laslabs.com>

Maintainer
----------

.. image:: https://laslabs.com/logo.png
:alt: LasLabs Inc.
:target: https://laslabs.com

This module is maintained by LasLabs Inc.

.. |Build Status| image:: https://api.travis-ci.org/LasLabs/python-five9.svg?branch=master
:target: https://travis-ci.org/LasLabs/python-five9
.. |Coverage| image:: https://codecov.io/gh/LasLabs/python-five9/branch/master/graph/badge.svg
:target: https://codecov.io/gh/LasLabs/python-five9
.. |Code Climate| image:: https://codeclimate.com/github/LasLabs/python-five9/badges/gpa.svg
:target: https://codeclimate.com/github/LasLabs/python-five9
.. |License MIT| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://opensource.org/licenses/MIT
:alt: License: MIT


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

five9-0.0.1b54.tar.gz (5.2 kB view details)

Uploaded Source

Built Distributions

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

five9-0.0.1b54-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

five9-0.0.1b54-py2-none-any.whl (8.0 kB view details)

Uploaded Python 2

File details

Details for the file five9-0.0.1b54.tar.gz.

File metadata

  • Download URL: five9-0.0.1b54.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for five9-0.0.1b54.tar.gz
Algorithm Hash digest
SHA256 d0be4ea04e9960cb813672277f43b95918bd10b4282a7e8b1c0f0f91699d8918
MD5 ab04060bf6baf4ac63df7e8e803a23cd
BLAKE2b-256 749534af9e2510d46736b8c808a797349b82f98a180f552eb80f9f43dd52fa4b

See more details on using hashes here.

File details

Details for the file five9-0.0.1b54-py3-none-any.whl.

File metadata

File hashes

Hashes for five9-0.0.1b54-py3-none-any.whl
Algorithm Hash digest
SHA256 27d8ffcaf9fb2d31ec872b07c4fb182054b86c3b893c4351b413729d3f47c72b
MD5 e5e9d085b06b7c072789ad2dede80064
BLAKE2b-256 750a22c120d289afbc2f105cfd9bc8f89c4cbaa63d7335049ee440d7bb4355e3

See more details on using hashes here.

File details

Details for the file five9-0.0.1b54-py2-none-any.whl.

File metadata

File hashes

Hashes for five9-0.0.1b54-py2-none-any.whl
Algorithm Hash digest
SHA256 51a8dc1422e9cdc4338013623d22a9c1519e74854e775d31b8854beec3be4dbf
MD5 49f786e70aa383671216e1362db58542
BLAKE2b-256 2de5aed4f29ace347640332c291d35776e9aad034cee8d95f00039c4d82c2003

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