pykazoo.callflows¶
-
class
pykazoo.callflows.Callflows(rest_request)¶ 2600hz Kazoo Callflows API.
Parameters: rest_request (pykazoo.restrequest.RestRequest) – The request client to use. (optional, default: pykazoo.RestRequest()) -
create_callflow(account_id, data)¶ Create a Callflow
Parameters: - account_id (str) – ID of Account to create Callflow for.
- data (dict) – Kazoo Callflow data (see official API Docs).
Returns: Kazoo Data (see official API docs).
Return type: dict
-
delete_callflow(account_id, callflow_id)¶ Deletes a Callflow
Parameters: - account_id (str) – ID of Callflow to delete device from.
- callflow_id (str) – ID of Callflow to delete.
Returns: Kazoo Data (see official API docs).
Return type: dict
-
get_callflow(account_id, callflow_id, filters=None)¶ Get a specific Callflows for an Account.
Parameters: - account_id (str) – ID of Account to get devices for.
- callflow_id (str) – ID of the Callflow to get.
- filters (dict, None) – Kazoo Filter Parameters (see official API docs).
Returns: Kazoo Data (see official API docs).
Return type: dict
-
get_callflows(account_id, filters=None)¶ Get all Callflows for an Account.
Parameters: - account_id (str) – ID of Account to get Callflows for.
- filters (dict, None) – Kazoo Filter Parameters (see official API docs).
Returns: Kazoo Data (see official API docs).
Return type: dict
-
update_callflow(account_id, callflow_id, data)¶ Updates a Callflow
Parameters: - account_id (str) – ID of Account to update device for.
- callflow_id (str) – ID of Callflow to update.
- data (dict) – Kazoo Account data (see official API Docs).
Returns: Kazoo Data (see official API docs).
Return type: dict
-