Retrieves a Conversations User.
The identity of the conversations user.
A promise that resolves to the User object.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { GetConversationsUser } from "@twilio/flex-sdk/actions/Conversation";async function getConversationsUser() { const client = await createClient("SDK_TOKEN"); const getConversationsUser = new GetConversationsUser("user_identity"); const user = await client.execute(getConversationsUser); return user;} Copy
import { createClient } from "@twilio/flex-sdk";import { GetConversationsUser } from "@twilio/flex-sdk/actions/Conversation";async function getConversationsUser() { const client = await createClient("SDK_TOKEN"); const getConversationsUser = new GetConversationsUser("user_identity"); const user = await client.execute(getConversationsUser); return user;}
Retrieves a Conversations User.
Param: identity
The identity of the conversations user.
Returns
A promise that resolves to the User object.
Throws
FlexSdkError with the following error code(s):
Example