(Created Fix blank page For Version: HTCC:8.5.2) |
(Update with the copy of version: 8.5.2DRAFT) |
||
Line 1: | Line 1: | ||
− | + | = AddComment= | |
+ | __NOTOC__ | ||
+ | This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Genesys Web Services REST API]]. | ||
+ | ==Overview== | ||
+ | Sets a comment on the specified Twitter interaction. | ||
+ | {| | ||
+ | ! Request URL | ||
+ | | /api/v2/me/twitter/{id} | ||
+ | |- | ||
+ | ! HTTP Method | ||
+ | | POST | ||
+ | |- | ||
+ | ! Required Features | ||
+ | | api-multimedia | ||
+ | |} | ||
+ | |||
+ | ==Parameters== | ||
+ | {| | ||
+ | ! Parameter | ||
+ | ! Value | ||
+ | |- | ||
+ | | operationName | ||
+ | | AddComment | ||
+ | |- | ||
+ | | comment | ||
+ | | A string value to be used for the Twitter comment. | ||
+ | |} | ||
+ | |||
+ | ==Samples== | ||
+ | ===Request=== | ||
+ | <source lang="text"> | ||
+ | POST api/v2/me/twitter/01QQQG2MU214P05H | ||
+ | |||
+ | { | ||
+ | "operationName": "AddComment", | ||
+ | "comment": "I am crazy about my test" | ||
+ | } | ||
+ | </source> | ||
+ | ===HTTP Response=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "statusCode": 0, | ||
+ | "referenceId": 22 | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | ===CometD Response=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "messageType": "TwitterStateChangeMessage", | ||
+ | "notificationType": "StatusChange", | ||
+ | "referenceId": 22, | ||
+ | "twitter": { | ||
+ | "capabilities": [], | ||
+ | "comment": "I am crazy about my test", | ||
+ | "id": "01QQQG2MU214P05H", | ||
+ | "state": "Canceled", | ||
+ | "twitterType": "Outbound", | ||
+ | "uri": "http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P05H" | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | [[Category:V:HTCC:8.5.2]] |
Revision as of 18:40, April 3, 2015
AddComment
This operation is part of the Twitter API section of the Genesys Web Services REST API.
Overview
Sets a comment on the specified Twitter interaction.
Request URL | /api/v2/me/twitter/{id} |
---|---|
HTTP Method | POST |
Required Features | api-multimedia |
Parameters
Parameter | Value |
---|---|
operationName | AddComment |
comment | A string value to be used for the Twitter comment. |
Samples
Request
POST api/v2/me/twitter/01QQQG2MU214P05H
{
"operationName": "AddComment",
"comment": "I am crazy about my test"
}
HTTP Response
{
"statusCode": 0,
"referenceId": 22
}
CometD Response
{
"messageType": "TwitterStateChangeMessage",
"notificationType": "StatusChange",
"referenceId": 22,
"twitter": {
"capabilities": [],
"comment": "I am crazy about my test",
"id": "01QQQG2MU214P05H",
"state": "Canceled",
"twitterType": "Outbound",
"uri": "http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P05H"
}
}
Comments or questions about this documentation? Contact us for support!