Jump to: navigation, search
(Update with the copy of version: 8.5.2DRAFT)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=*Reply=
+
=Reply=
 +
__NOTOC__
 +
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Web Services API]].
 +
==Overview==
 +
Creates a Twitter reply.
 +
{|
 +
! Request URL
 +
| /api/v2/me/tweets/{id}
 +
|-
 +
! HTTP Method
 +
| POST
 +
|-
 +
! Required Features
 +
| api-multimedia
 +
|}
  
{{Editgrn_open}}Needs info{{Editgrn_close}}
+
==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/tweets/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/tweet/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]]

Latest revision as of 09:42, June 24, 2020

Reply

This operation is part of the Twitter API section of the Web Services API.

Overview

Creates a Twitter reply.

Request URL /api/v2/me/tweets/{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/tweets/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/tweet/01QQQG2MU214P05S",
      "userData":{  
         "To":"vitaliy_onv",
         "_twitterInReplyToStatusId":"16556921",
         "_twitterMsgType":"status",
         "_umsChannel":"channel-twitter"
      }
   }
}
This page was last edited on June 24, 2020, at 09:42.
Comments or questions about this documentation? Contact us for support!