Skip to main content

IdentitiesService

A list of all methods in the IdentitiesService service. Click on the method name to view detailed information about that method.

MethodsDescription
soc_msg_list_identitiesList identities by creation date. The default order is descending. The account context of this request is determined by the RC Account Id associated with the access token provided in the Authorization header. The query parameters provided shall be considered an AND operation to filter the list. A query parameter not specified or a query parameter provided with no value is treated as not required for filtering the list.
soc_msg_get_identityRenders an identity from given id.

soc_msg_list_identities

List identities by creation date. The default order is descending. The account context of this request is determined by the RC Account Id associated with the access token provided in the Authorization header. The query parameters provided shall be considered an AND operation to filter the list. A query parameter not specified or a query parameter provided with no value is treated as not required for filtering the list.

  • HTTP Method: GET
  • Endpoint: /cx/social-messaging/v1/identities

Parameters

NameTypeRequiredDescription
source_idstrFilter based on the specified sourceId.
identity_group_idsList[str]Filter based on the specified identityGroupIds (separated by commas).
user_idstrFilter based on the specified userId.
uuidstrFilter based on the specified uuid.
order_bySocMsgCreationTimeOrderOrder results by specified field.
page_tokenstrThe token indicating the particular page of the result set to be retrieved. If omitted the first page will be returned.
per_pageintThe number of items per page. If provided value in the request is greater than a maximum, the maximum value is applied

Return Type

IdentitiesList

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import SocMsgCreationTimeOrder

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
identity_group_ids=[
"identityGroupIds"
]

result = sdk.identities.soc_msg_list_identities(
source_id="sourceId",
identity_group_ids=identity_group_ids,
user_id="userId",
uuid="uuid",
order_by="-creationTime",
page_token="pageToken",
per_page=100
)

print(result)

soc_msg_get_identity

Renders an identity from given id.

  • HTTP Method: GET
  • Endpoint: /cx/social-messaging/v1/identities/{identityId}

Parameters

NameTypeRequiredDescription
identity_idstrIdentity identifier.

Return Type

IdentityModel

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.identities.soc_msg_get_identity(identity_id="506d9e817aa58d1259000f12")

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →