wxc_sdk.telephony.playlists package
- class wxc_sdk.telephony.playlists.PlaylistAnnouncement(*, id: str | None = None, name: str | None = None, fileName: str | None = None, fileSize: int | None = None, mediaFileType: str | None = None, lastUpdated: datetime | None = None, level: str | None = None, **extra_data: Any)[source]
Bases:
ApiModel- id: str | None
Unique identifier of the announcement.
- name: str | None
Name of the announcement.
- file_name: str | None
File name of the uploaded binary announcement greeting.
- file_size: int | None
Size of the file in kilobytes.
- media_file_type: str | None
Media file type of the announcement file.
- last_updated: datetime | None
Last updated timestamp (in UTC format) of the announcement.
- level: str | None
The level at which this playlist exists.
- class wxc_sdk.telephony.playlists.PlayListApi(*, session: RestSession, base: str = None)[source]
Bases:
ApiChildFeatures: Announcement PlayList
Features: Announcement PlayList support reading and writing of Webex Calling Announcement PlayList settings for a specific organization. The playlist has multiple announcement files which will be played where the announcement playlist is selected.
Viewing these read-only organization settings requires a full or read-only administrator auth token with a scope of spark-admin:telephony_config_read.
Modifying these organization settings requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
A partner administrator can retrieve or change settings in a customer’s organization using the optional orgId query parameter.
- list(org_id: str = None) list[PlayList][source]
List Announcement Playlists
Fetch a list of announcement playlist at an organization.
This API requires a full or read-only administrator or location administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
org_id (str) – Get announcements playlist in this organization.
- Return type:
list[
PlayList]
- create(name: str, announcement_ids: list[str], org_id: str = None) str[source]
Create announcement Playlist at organization level
Create announcement Playlist at an organization level. A maximum of 25 announcement files can be included in a single playlist.
This API requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
- Parameters:
name (str) – Unique name for the announcement playlist.
announcement_ids (list[str]) – Array of announcementIds associated with the playlist.
org_id (str) – Create an announcement playlist in this organization.
- Return type:
str
- usage(play_list_id: str, playlist_usage_type: PlaylistUsageType = None) PlaylistUsage[source]
Get Playlist Usage
- Parameters:
play_list_id (str) – Unique identifier of the playlist.
playlist_usage_type (PlaylistUsageType) – Filter usage by type.
- Return type:
- delete(play_list_id: str, org_id: str = None)[source]
Delete Announcement Playlist
Delete an announcement playlist for an organization.
This API requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
- Parameters:
play_list_id (str) – Unique identifier of an announcement playlist.
org_id (str) – Delete an announcement playlist in this organization.
- Return type:
None
- details(play_list_id: str, org_id: str = None) PlayList[source]
Get Announcement Playlist
Fetch details of announcement playlist by its ID at an organization level.
This API requires a full or read-only administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
play_list_id (str) – Unique identifier of an announcement playlist.
org_id (str) – Get an announcement playlist in this organization.
- Return type:
- modify(play_list_id: str, name: str = None, announcement_ids: list[str] = None, org_id: str = None)[source]
Update Announcement Playlist
Modify an existing announcement playlist at an organization level.
This API requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
- Parameters:
play_list_id (str) – Unique identifier of an announcement playlist.
name (str) – Unique name for the announcement playlist.
announcement_ids (list[str]) – Array of announcementIds associated with the playlist.
org_id (str) – Modify an announcement playlist in this organization.
- Return type:
None
- assigned_locations(play_list_id: str, org_id: str = None) list[IdAndName][source]
List Playlist Locations
Fetch list of locations which are assigned to the given announcement playlist
This API requires a full or read-only administrator or location administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
play_list_id (str) – Unique identifier of playlist.
org_id (str) – Get location associated to a playlist in this organization.
- Return type:
PlayListAssignedLocations
- modify_assigned_locations(play_list_id: str, location_ids: list[str], org_id: str = None)[source]
Update Playlist Locations
Modify list of assigned locations or add new locations to the announcement playlist. This will assing the playlist to the location’s music on hold.
This API requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
- Parameters:
play_list_id (str) – Unique identifier of an announcement playlist.
location_ids (list[str]) – Array of location IDs with which the playlist is associated.
org_id (str) – Modify an assign location for announcement playlist for organization.
- Return type:
None
- base = 'telephony/config/announcements/playlists'
- class wxc_sdk.telephony.playlists.PlayList(*, id: str | None = None, name: str | None = None, fileSize: int | None = None, fileCount: int | None = None, isInUse: bool | None = None, lastUpdated: datetime | None = None, level: str | None = None, locationCount: int | None = None, announcements: list[PlaylistAnnouncement] | None = None, **extra_data: Any)[source]
Bases:
ApiModel- id: str | None
Unique identifier of the playlist.
- name: str | None
Unique name for the announcement playlist.
- file_size: int | None
Size of the files in kilobytes.
- file_count: int | None
Count of the announcements associated with playlist.
- is_in_use: bool | None
Indicates if the playlist has been used or not.
- last_updated: datetime | None
Last updated timestamp (in UTC format) of the playlist.
- level: str | None
The level at which this playlist exists.
- location_count: int | None
Count of the location this playlist is assigned to.
- announcements: list[PlaylistAnnouncement] | None
List of announcement details associated with playlist.
- class wxc_sdk.telephony.playlists.PlaylistUsageType(*values)[source]
Bases:
str,SafeEnumAn enumeration.
- feature = 'feature'
- location = 'location'
- class wxc_sdk.telephony.playlists.PlaylistUsageLocation(*, id: str | None = None, name: str | None = None, featureReference: PlaylistUsageLocationFeatureRef | None = None, **extra_data: Any)[source]
Bases:
ApiModel- id: str | None
Location identifier.
- name: str | None
Location name.
- feature_reference: PlaylistUsageLocationFeatureRef | None
Feature referencing the playlist.
- class wxc_sdk.telephony.playlists.PlaylistUsageLocationFeatureRef(*, id: str | None = None, name: str | None = None, type: str | None = None, **extra_data: Any)[source]
Bases:
ApiModel- id: str | None
Feature identifier.
- name: str | None
Feature name.
- type: str | None
Feature type.
- class wxc_sdk.telephony.playlists.PlaylistUsage(*, id: str | None = None, locations: list[PlaylistUsageLocation] | None = None, **extra_data: Any)[source]
Bases:
ApiModel- id: str | None
Identifier of the playlist.
- locations: list[PlaylistUsageLocation] | None
List of locations using this playlist.