Jump to: navigation, search
(Auto-creation of topic Documentation:HTCC:API:TwitterCancel:8.5.2 via TOC Documentation:HTCC:APITOC8.5.2)
 
(Update with the copy of version: 8.5.2DRAFT)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= TwitterCancel=
+
=Cancel=
 +
__NOTOC__
 +
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Web Services API]].
 +
==Overview==
 +
Cancels a Twitter interaction.
 +
{|
 +
! Request URL
 +
| /api/v2/me/tweets/{Id}
 +
|-
 +
! HTTP Method
 +
| POST
 +
|-
 +
! Required Features
 +
| api-multimedia
 +
|}
 +
 
 +
==Parameters==
 +
{|
 +
! Parameter
 +
! Value
 +
|-
 +
| operationName
 +
| Cancel
 +
|}
 +
 
 +
==Samples==
 +
===Request===
 +
<source lang="text">
 +
POST /api/v2/me/tweets/01QQQG2MU214P05G
 +
{
 +
  "operationName": "Cancel"
 +
}
 +
</source>
 +
 
 +
===HTTP Response===
 +
<source lang="text">
 +
{
 +
"statusCode": 0,
 +
"referenceId": 12
 +
}
 +
</source>
 +
 
 +
===CometD Response===
 +
<source lang="text">
 +
 +
  "messageType":"TwitterStateChangeMessage",
 +
  "notificationType":"StatusChange",
 +
  "referenceId":12,
 +
  "twitter":{ 
 +
      "capabilities":[ 
 +
 
 +
      ],
 +
      "id":"01QQQG2MU214P05G",
 +
      "state":"Canceled",
 +
      "twitterType":"Outbound",
 +
      "uri":"http://192.168.83.25:8080/api/v2/tweet/01QQQG2MU214P05G"
 +
  }
 +
}
 +
</source>
  
 
[[Category:V:HTCC:8.5.2]]
 
[[Category:V:HTCC:8.5.2]]

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

Cancel

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

Overview

Cancels a Twitter interaction.

Request URL /api/v2/me/tweets/{Id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName Cancel

Samples

Request

POST /api/v2/me/tweets/01QQQG2MU214P05G
{
  "operationName": "Cancel"
}

HTTP Response

{
 "statusCode": 0,
 "referenceId": 12
}

CometD Response

{  
   "messageType":"TwitterStateChangeMessage",
   "notificationType":"StatusChange",
   "referenceId":12,
   "twitter":{  
      "capabilities":[  

      ],
      "id":"01QQQG2MU214P05G",
      "state":"Canceled",
      "twitterType":"Outbound",
      "uri":"http://192.168.83.25:8080/api/v2/tweet/01QQQG2MU214P05G"
   }
}
This page was last edited on June 24, 2020, at 09:41.
Comments or questions about this documentation? Contact us for support!