Line 117: | Line 117: | ||
"UserData2": 123456789}}} | "UserData2": 123456789}}} | ||
</source> | </source> | ||
+ | |||
+ | {| | ||
+ | ! '''Field''' | ||
+ | ! '''Description''' | ||
+ | |- | ||
+ | | messageType | ||
+ | | The category of message. | ||
+ | |- | ||
+ | | notificationType | ||
+ | | The purpose of the notification. | ||
+ | |- | ||
+ | | twitter | ||
+ | | The element containing all twitter specific data. | ||
+ | |} | ||
[[Category:V:HTCC:8.5.2DRAFT]] | [[Category:V:HTCC:8.5.2DRAFT]] |
Revision as of 01:01, March 19, 2015
Save
This operation is part of the Twitter API section of the Genesys Web Services REST API.
Overview
Saves a Twitter interaction.
Request URL | /api/v2/me/twitter/{id} |
---|---|
HTTP Method | POST |
Required Features | api-multimedia |
Parameters
Parameter | Value |
---|---|
operationName | Save |
Specified data with Twitter parameters. (optional) |
Twitter Parameters
Parameter | Value |
---|---|
from | A user name for a Twitter account. |
message | The actual message to send. The body should be plain text. |
Samples
Request Without a Twitter Resource
Request
POST api/v2/me/twitter/01QQQG2MU214P066
{
"operationName": "Save"
}
HTTP Response
{
"statusCode": 0
}
CometD Response
{"messageType": "TwitterStateChangeMessage",
"notificationType": "TwitterSaved",
"referenceId": 40,
"twitter": {"capabilities": ["Cancel",
"Send",
"AddComment",
"AttachUserData",
"UpdateUserData",
"DeleteUserData",
"SetDisposition",
"SetInFocus",
"Transfer"],
"id": "01QQQG2MU214P066",
"state": "Composing",
"twitterType": "Outbound",
"uri": "http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P066",
"userData": {"UserData2": 123456789}}}
Request With a Twitter Resource
Request
POST api/v2/me/twitter/01QQQG2MU214P069
{
"operationName": "Save",
"twitter" :
{
"from": "vitaliy_onv",
"message": "Hello saved twitter!"
}
}
HTTP Response
{
"statusCode": 0
}
CometD Response
{"messageType": "TwitterStateChangeMessage",
"notificationType": "TwitterSaved",
"referenceId": 16,
"twitter": {"capabilities": ["Cancel",
"Send",
"AddComment",
"AttachUserData",
"UpdateUserData",
"DeleteUserData",
"SetDisposition",
"SetInFocus",
"Transfer"],
"from": "vitaliy_onv",
"id": "01QQQG2MU214P069",
"message": "Hello saved twitter!",
"state": "Composing",
"subject": "Hello saved twitter!",
"twitterType": "Outbound",
"uri": "http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P069",
"userData": {"FromAddress": "vitaliy_onv",
"UserData2": 123456789}}}
Field | Description |
---|---|
messageType | The category of message. |
notificationType | The purpose of the notification. |
The element containing all twitter specific data. |
Comments or questions about this documentation? Contact us for support!