wxc_sdk.person_settings.app_shared_line module
- class wxc_sdk.person_settings.app_shared_line.AppSharedLineApi(*, session: RestSession, base: str = None)[source]
Bases:
ApiChildWebex app shared line API
- search_members(person_id: str, order: str = None, location: str = None, name: str = None, phone_number: str = None, extension: str = None, **params) → Generator[AvailableMember, None, None][source]
Search Shared-Line Appearance Members
Get members available for shared-line assignment to a Webex Calling Apps.
Like most hardware devices, applications support assigning additional shared lines which can monitored and utilized by the application.
This API requires a full, user, or location administrator auth token with the spark-admin:telephony_config_read scope.
- Parameters:
person_id (str) – A unique identifier for the person.
order (str) – Order the Route Lists according to number, ascending or descending.
location (str) – Location ID for the user.
name (str) – Search for users with names that match the query.
phone_number (str) – Search for users with numbers that match the query.
extension (str) – Search for users with extensions that match the query.
- Returns:
Generator yielding
AvailableSharedLineMemberinstances
- members_count(person_id: str, location_id: str = None, member_name: str = None, phone_number: str = None, extension: str = None, org_id: str = None) → int[source]
Get Count of Shared-Line Appearance Members
Get the count of members available for shared-line assignment to Webex Calling Apps.
Shared-line appearance allows multiple devices or applications to share a single line for call handling.
This API requires a full, user, or location administrator auth token with the spark-admin:telephony_config_read scope.
- Parameters:
person_id (str) – A unique identifier for the person.
location_id (str) – Location ID for the person.
member_name (str) – Search for people with names that match the query.
phone_number (str) – Search for people with numbers that match the query.
extension (str) – Search for people with extensions that match the query.
org_id (str) – Organization ID for the person.
- Return type:
int
- get_members(person_id: str) → DeviceMembersResponse[source]
Get Shared-Line Appearance Members
Get primary and secondary members assigned to a shared line on a Webex Calling Apps.
Like most hardware devices, applications support assigning additional shared lines which can monitored and utilized by the application.
This API requires a full, user, or location administrator auth token with the spark-admin:telephony_config_read scope.
- Parameters:
person_id (str) – A unique identifier for the person.
- Return type:
DeviceMembersResponse
- update_members(person_id: str, members: list[DeviceMember | AvailableMember] = None)[source]
Put Shared-Line Appearance Members New
Add or modify primary and secondary users assigned to shared-lines on a Webex Calling Apps.
Like most hardware devices, applications support assigning additional shared lines which can monitored and utilized by the application.
This API requires a full, user, or location administrator auth token with the spark-admin:telephony_config_write scope.
- Parameters:
person_id (str) – A unique identifier for the person.
members (list[Union[DeviceMember, AvailableMember]]) – List of members to be added or modified for shared-line assignment to a Webex Calling Apps.
- Return type:
None
- base = 'telephony/config/people'