Jump to: navigation, search
(Auto-creation of topic Documentation:HTCC:API:TwitterAccept:8.5.2 via TOC Documentation:HTCC:APITOC8.5.2)
 
Line 1: Line 1:
= TwitterAccept=
+
=Accept=
 +
__NOTOC__
 +
 
 +
This operation can be performed, after a new Interaction invitation notification arrives. It is essentially one of two options an agent (user) has regarding an Interaction invitation: accepting it or rejecting it. Choosing this action will associate the Interaction to the agent. This association or "ownership" will continue until that agent performs a Complete, Transfer, or Re-direct action on the aforementioned Interaction. A successful request will result in an empty http-200 response. The true response will arrive on the cometd topic (channel) /me/interactions/
 +
 
 +
== HTTP Request ==
 +
 
 +
POST on '''/me/interaction/{id}'''
 +
<pre>
 +
{
 +
"operationName":"Accept"
 +
}
 +
</pre>
 +
== HTTP Response ==
 +
 
 +
===Success===
 +
<pre>
 +
{
 +
"statusCode": 0
 +
}
 +
</pre>
 +
===Failure===
 +
<pre>
 +
{
 +
"statusCode": an integer value above 0,
 +
"statusMessage":details
 +
}
 +
</pre>
 +
For details on the statusCode value, please refer to the All Methods sub-section of the Return Values section.
 +
 
 +
 
 +
== Cometd Response ==
 +
 
 +
 
 +
 
  
 
[[Category:V:HTCC:8.5.2]]
 
[[Category:V:HTCC:8.5.2]]

Revision as of 15:10, February 18, 2014

Accept

This operation can be performed, after a new Interaction invitation notification arrives. It is essentially one of two options an agent (user) has regarding an Interaction invitation: accepting it or rejecting it. Choosing this action will associate the Interaction to the agent. This association or "ownership" will continue until that agent performs a Complete, Transfer, or Re-direct action on the aforementioned Interaction. A successful request will result in an empty http-200 response. The true response will arrive on the cometd topic (channel) /me/interactions/

HTTP Request

POST on /me/interaction/{id}

{
"operationName":"Accept"
}

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.


Cometd Response

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