Jump to: navigation, search
(Send)
Line 5: Line 5:
 
POST on '''/me/interactions/{id}'''
 
POST on '''/me/interactions/{id}'''
  
<nowiki>
+
<pre>
 
{
 
{
 
   "operationName":"SendMessage",
 
   "operationName":"SendMessage",
 
   "text":string-representation-of-text
 
   "text":string-representation-of-text
 
}
 
}
</nowiki>
+
</pre>
  
 
===HTTP Response===
 
===HTTP Response===
  
 
''Success''
 
''Success''
 
+
<pre>
<nowiki>
 
 
{
 
{
 
   "statusCode": 0
 
   "statusCode": 0
 
}
 
}
</nowiki>
+
</pre>
  
 
''Failure''
 
''Failure''
 
+
<pre>
<nowiki>
 
 
{
 
{
 
   "statusCode": an integer value above 0,
 
   "statusCode": an integer value above 0,
 
   "statusMessage":details
 
   "statusMessage":details
 
}
 
}
</nowiki>
+
</pre>
  
 
For details on the <tt>statusCode</tt> value, please refer to the [[ReturnValues#All_Methods|All Methods]] sub-section of the Return Values section.
 
For details on the <tt>statusCode</tt> value, please refer to the [[ReturnValues#All_Methods|All Methods]] sub-section of the Return Values section.
  
 
[[Category:V:HTCC:8.5.2]]
 
[[Category:V:HTCC:8.5.2]]

Revision as of 14:18, March 24, 2014

Send

This operation can be performed whenever an agent wants to send a message to other chat participants.

HTTP Request

POST on /me/interactions/{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 section.

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