(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Reply= | =Reply= | ||
__NOTOC__ | __NOTOC__ | ||
− | This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome| | + | This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Web Services API]]. |
==Overview== | ==Overview== | ||
Creates a Twitter reply. | Creates a Twitter reply. | ||
{| | {| | ||
! Request URL | ! Request URL | ||
− | | /api/v2/me/ | + | | /api/v2/me/tweets/{id} |
|- | |- | ||
! HTTP Method | ! HTTP Method | ||
Line 36: | Line 36: | ||
===Request=== | ===Request=== | ||
<source lang="text"> | <source lang="text"> | ||
− | POST api/v2/me/ | + | POST api/v2/me/tweets/01QQQG2MU214P05R, |
{ | { | ||
"operationName": "Reply", | "operationName": "Reply", | ||
Line 45: | Line 45: | ||
<source lang="text"> | <source lang="text"> | ||
{ | { | ||
− | "statusCode": 0 | + | "statusCode": 0, |
+ | "referenceId": 42 | ||
} | } | ||
</source> | </source> | ||
+ | |||
===CometD Response=== | ===CometD Response=== | ||
<source lang="text"> | <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> | </source> | ||
[[Category:V:HTCC:8.5.2DRAFT]] | [[Category:V:HTCC:8.5.2DRAFT]] |
Latest revision as of 07:08, June 23, 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 23, 2020, at 07:08.
Comments or questions about this documentation? Contact us for support!