(Update with the copy of version: 8.5.2DRAFT) |
|||
Line 1: | Line 1: | ||
− | = | + | =Reply= |
+ | __NOTOC__ | ||
+ | This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Genesys Web Services REST API]]. | ||
+ | ==Overview== | ||
+ | Creates a Twitter reply. | ||
+ | {| | ||
+ | ! Request URL | ||
+ | | /api/v2/me/twitter/{id} | ||
+ | |- | ||
+ | ! HTTP Method | ||
+ | | POST | ||
+ | |- | ||
+ | ! Required Features | ||
+ | | api-multimedia | ||
+ | |} | ||
− | {{ | + | ==Parameters== |
+ | {| | ||
+ | ! Parameter | ||
+ | ! Value | ||
+ | |- | ||
+ | | operationName | ||
+ | | Reply | ||
+ | |- | ||
+ | | queuePath | ||
+ | | The job queue for handling the send operation. (required) | ||
+ | |- | ||
+ | | isRetweet | ||
+ | | Specifies whether this is a retweet. (optional) | ||
+ | |- | ||
+ | | userData | ||
+ | | The key value data to attach. (optional) | ||
+ | |} | ||
+ | |||
+ | ==Samples== | ||
+ | ===Request=== | ||
+ | <source lang="text"> | ||
+ | POST api/v2/me/twitter/01QQQG2MU214P05R, | ||
+ | { | ||
+ | "operationName": "Reply", | ||
+ | "queuePath": "/contacts/60ebbb94-3cef-4b14-95f8-5c49dbeb355d" | ||
+ | } | ||
+ | </source> | ||
+ | ===HTTP Response=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "statusCode": 0, | ||
+ | "referenceId": 42 | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | ===CometD Response=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "messageType":"TwitterStateChangeMessage", | ||
+ | "notificationType":"StatusChange", | ||
+ | "referenceId":42, | ||
+ | "twitter":{ | ||
+ | "capabilities":[ | ||
+ | "Cancel", | ||
+ | "Send", | ||
+ | "AddComment", | ||
+ | "AttachUserData", | ||
+ | "UpdateUserData", | ||
+ | "DeleteUserData", | ||
+ | "SetDisposition", | ||
+ | "SetInFocus", | ||
+ | "Transfer" | ||
+ | ], | ||
+ | "contactId":"0000Ka96XNNU4488", | ||
+ | "id":"01QQQG2MU214P05S", | ||
+ | "message":"On 12:58:9 11/5/2013, P created a post saying hello world!.", | ||
+ | "parentId":"01QQQG2MU214P05R", | ||
+ | "state":"Composing", | ||
+ | "twitterType":"Outbound", | ||
+ | "uri":"http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P05S", | ||
+ | "userData":{ | ||
+ | "To":"vitaliy_onv", | ||
+ | "_twitterInReplyToStatusId":"16556921", | ||
+ | "_twitterMsgType":"status", | ||
+ | "_umsChannel":"channel-twitter" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Revision as of 18:40, April 3, 2015
Reply
This operation is part of the Twitter API section of the Genesys Web Services REST API.
Overview
Creates a Twitter reply.
Request URL | /api/v2/me/twitter/{id} |
---|---|
HTTP Method | POST |
Required Features | api-multimedia |
Parameters
Parameter | Value |
---|---|
operationName | Reply |
queuePath | The job queue for handling the send operation. (required) |
isRetweet | Specifies whether this is a retweet. (optional) |
userData | The key value data to attach. (optional) |
Samples
Request
POST api/v2/me/twitter/01QQQG2MU214P05R,
{
"operationName": "Reply",
"queuePath": "/contacts/60ebbb94-3cef-4b14-95f8-5c49dbeb355d"
}
HTTP Response
{
"statusCode": 0,
"referenceId": 42
}
CometD Response
{
"messageType":"TwitterStateChangeMessage",
"notificationType":"StatusChange",
"referenceId":42,
"twitter":{
"capabilities":[
"Cancel",
"Send",
"AddComment",
"AttachUserData",
"UpdateUserData",
"DeleteUserData",
"SetDisposition",
"SetInFocus",
"Transfer"
],
"contactId":"0000Ka96XNNU4488",
"id":"01QQQG2MU214P05S",
"message":"On 12:58:9 11/5/2013, P created a post saying hello world!.",
"parentId":"01QQQG2MU214P05R",
"state":"Composing",
"twitterType":"Outbound",
"uri":"http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P05S",
"userData":{
"To":"vitaliy_onv",
"_twitterInReplyToStatusId":"16556921",
"_twitterMsgType":"status",
"_umsChannel":"channel-twitter"
}
}
}
Comments or questions about this documentation? Contact us for support!