skip to navigation
skip to content

Not Logged In

xivo-ws 12.21.1

A library for the XiVO web services.

Latest Version: 13.25.1

xivo-ws
=======

xivo-ws is a python library for the XiVO web services.


Configuration
-------------

On your XiVO, you must `create a web service user`_.


Example
-------

::

   from xivo_ws import XivoServer, User, UserLine

   xivo_server = XivoServer('skaro', 'my_username', 'my_password')

   user = User()
   user.firstname = 'Jack'
   user.lastname = 'Johnson'
   user.line = UserLine(context='default', number=1001)

   xivo_server.users.add(user)

More examples are available in the :file:`examples` directory.


.. _XiVO server: http://documentation.xivo.fr/production/
.. _create a web service user: http://documentation.xivo.fr/production/api_sdk/web_services.html#configuration


xivo-ws-debug
-------------

::

   > users add

will pop your editor, in which you should write a Python dictionary to be sent
to the WS

   > users delete 32

will delete user whose id is 32.

``-v`` option allows you to see what is sent and received to/from the WS.


Create new version
------------------

git commit

Read version number in xivo_ws/version.py.
git tag <version>

make upload

git push --tags

Edit the version file and increase version number.
git commit
 
File Type Py Version Uploaded on Size
xivo-ws-12.21.1.tar.gz (md5) Source 2012-10-25 31KB
  • Downloads (All Versions):
  • 198 downloads in the last day
  • 914 downloads in the last week
  • 3239 downloads in the last month