Documentation

Support

Vivox Core SDK

Vivox Core SDK

Send a directed message

Learn how to send direct messages between users.
Read time 1 minuteLast updated 20 hours ago

You can send a directed message by using the vx_req_account_send_message request.
typedef struct vx_req_account_send_message{ /** * The common properties for all requests. */ vx_req_base_t base; /** * The handle returned from successful vx_req_sessiongroup_add_session request. */ VX_HANDLE account_handle; /** * The destination URI. */ char *user_uri; /** * HTTP Content type of the message. * If an empty string is passed in, this field will default to "text/plain". * For other valid content types, see RFC 2046 (https://www.ietf.org/rfc/rfc2046.txt). */ char *message_header; /** * HTTP Content type of the message. * If an empty string is passed in, this field will default to "text/plain". * This field will be validated, so it must be in a valid format. * For a full description of valid content types, see RFC 2046 (https://www.ietf.org/rfc/rfc2046.txt). */ char *message_body; /** * The language (default null, implies "en"). */ char *language; /** * The namespace of the custom application stanza (optional, default null). */ char *application_stanza_namespace; /** * The custom application stanza body (optional, default null). */ char *application_stanza_body;}vx_req_account_send_message_t;
For more information on using directed text in the SDKSampleApp, see Send a directed message.