wxc_sdk.me.anon_calls package

class wxc_sdk.me.anon_calls.MeAnonCallsApi(*, session: RestSession, base: str | None = None)[source]

Bases: ApiChild

get() bool[source]

Get Anonymous Call Rejection Settings for User

Get Anonymous Call Rejection Settings for the authenticated user.

Anonymous Call Rejection allows you to reject calls from anonymous callers.

This API requires a user auth token with a scope of spark:telephony_config_read.

Return type:

bool

modify(enabled: bool)[source]

Modify Anonymous Call Rejection Settings for User

Update Anonymous Call Rejection Settings for the authenticated user.

Anonymous Call Rejection allows you to reject calls from anonymous callers.

This API requires a user auth token with a scope of spark:telephony_config_write.

Parameters:

enabled (bool) – Indicates whether Anonymous Call Rejection is enabled or not.

Return type:

None

base = 'telephony/config/people/me'