Jump to: navigation, search
(Auto-creation of topic Documentation:HTCC:API:TwitterCreate:8.5.2 via TOC Documentation:HTCC:APITOC8.5.2)
 
Line 1: Line 1:
= TwitterCreate=
+
=Create=
 +
This operation can be performed to create a new interaction of type Twitter. The new interaction data will arrive via CometD notification.
 +
 
 +
== HTTP Request ==
 +
 
 +
POST on '''/me/interactions/'''
 +
<pre>
 +
{
 +
"operationName":"Create",
 +
"queueName":name-of-queue-where to store the interaction (e.g. Twitter Outbound Queue),
 +
"channel":"Twitter"
 +
"interactionType":type of the interaction to be created (e.g. Outbound),
 +
"interactionSubType":subtype of the interaction to be crated (e.g. OutboundNew)
 +
}
 +
</pre>
 +
== HTTP Response ==
 +
 
 +
===Success===
 +
<pre>
 +
{
 +
"statusCode": 0
 +
}
 +
</pre>
 +
===Failure===
 +
<pre>
 +
{
 +
"statusCode": an integer value above 0,
 +
"statusMessage":details
 +
}
 +
</pre>
 +
== Cometd Response ==
 +
 
  
 
[[Category:V:HTCC:8.5.2]]
 
[[Category:V:HTCC:8.5.2]]

Revision as of 15:18, February 18, 2014

Create

This operation can be performed to create a new interaction of type Twitter. The new interaction data will arrive via CometD notification.

HTTP Request

POST on /me/interactions/

{
"operationName":"Create",
"queueName":name-of-queue-where to store the interaction (e.g. Twitter Outbound Queue),
"channel":"Twitter"
"interactionType":type of the interaction to be created (e.g. Outbound),
"interactionSubType":subtype of the interaction to be crated (e.g. OutboundNew)
}

HTTP Response

Success

{
"statusCode": 0
}

Failure

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

Cometd Response

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