Jump to: navigation, search
Line 74: Line 74:
 
                             "_umsChannel": "channel-twitter"}}}
 
                             "_umsChannel": "channel-twitter"}}}
 
</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:02, March 19, 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
}

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"}}}
Field Description
messageType The category of message.
notificationType The purpose of the notification.
twitter The element containing all twitter specific data.
Comments or questions about this documentation? Contact us for support!