Skip to content

alkivi-sas/python-3cx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

threecx

Python client for 3CX HTTP APIs with configuration handled via Alkivi's config manager.

Installation

pip install threecx

Configuration

Configuration is provided by python-alkivi-config-manager. See its repository for details: alkivi-sas/python-alkivi-config-manager.

Create a configuration file named 3cx.conf in one of the supported locations (./3cx.conf, ~/.3cx.conf, /etc/3cx.conf):

[default]
endpoint=prod

[prod]
fqdn=pbx.example.com
username=john
password=secret

Usage

from threecx import get_3cx_api

client = get_3cx_api("prod")
print(client.version())

Or list configured endpoints:

from threecx import get_3cx_endpoints

print(get_3cx_endpoints())

Development

  • Build: python -m build (requires pip install build)
  • Test: pytest

License

MIT

About

Unofficial API Client for 3CX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages