Jump to: navigation, search
Line 1: Line 1:
=Send=
+
=SendMessage=
 
This operation is performed when an agent sends a message to other chat participants.
 
This operation is performed when an agent sends a message to other chat participants.
 +
__NOTOC__
 +
==Overview==
 +
{|
 +
! Request URL
 +
| /api/v2/me/chats/{id}
 +
|-
 +
! HTTP Method
 +
| POST
 +
|-
 +
! Required Features
 +
| api-multimedia
 +
|}
  
 +
==Parameters==
 +
{|
 +
! Parameter
 +
! Value
 +
|-
 +
| operationName
 +
| SendMessage
 +
|-
 +
| text
 +
| text to send to customer
 +
|}
 +
 +
==Sample==
 
===HTTP Request===
 
===HTTP Request===
 
POST on '''/me/chats/{id}'''
 
POST on '''/me/chats/{id}'''

Revision as of 19:22, April 14, 2014

SendMessage

This operation is performed when an agent sends a message to other chat participants.

Overview

Request URL /api/v2/me/chats/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName SendMessage
text text to send to customer

Sample

HTTP Request

POST on /me/chats/{id}

{
  "operationName":"SendMessage",
  "text":string-representation-of-text
}

HTTP Response

Success

{
  "statusCode": 0
}

Failure

{
  "statusCode": an integer value above 0,
  "statusMessage":details
}

For details on the statusCode value, please refer to the All Methods sub-section of the Return Values page.

Comments or questions about this documentation? Contact us for support!