2022-01-06 12:35:28 +01:00
|
|
|
# Mitel OMMClient2
|
|
|
|
|
2022-01-17 12:29:14 +01:00
|
|
|
Another attempt for a modern client library to the Mitel OM Application XML Interface.
|
2022-01-06 16:13:05 +01:00
|
|
|
|
|
|
|
## Quicksart
|
|
|
|
|
|
|
|
Just some examples to give you an idea what this does.
|
|
|
|
|
|
|
|
```
|
|
|
|
import mitel_ommclient2
|
|
|
|
|
|
|
|
# Connect to your OMM
|
|
|
|
c = mitel_ommclient2.OMMClient2("omm.local", "admin", "admin")
|
|
|
|
|
|
|
|
# Use built in methods for common actions
|
|
|
|
c.ping()
|
|
|
|
|
|
|
|
# Create custom messages
|
2022-01-17 12:29:14 +01:00
|
|
|
r = c.request(mitel_ommclient2.messages.Ping(timeStamp=2342))
|
2022-01-06 16:13:05 +01:00
|
|
|
|
|
|
|
# Craft your own request, if it is not implemented yet
|
2022-01-17 12:29:14 +01:00
|
|
|
r = c.request(mitel_ommclient2.messages.DictRequest("Ping", {"timeStamp": 2342}))
|
2022-01-06 16:13:05 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Consult class documentation for more in depth examples and options.
|
2022-01-06 16:20:46 +01:00
|
|
|
|
|
|
|
## Attribution
|
|
|
|
|
|
|
|
This software is inspired by `python-mitel` by Thomas and n-st.
|