Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
=Cancel=
 
=Cancel=
 
__NOTOC__
 
__NOTOC__
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Genesys Web Services REST API]].
+
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Web Services API]].
 
==Overview==
 
==Overview==
 
Cancels a Twitter interaction.
 
Cancels a Twitter interaction.
 
{|
 
{|
 
! Request URL
 
! Request URL
| /api/v2/me/twitter/{Id}
+
| /api/v2/me/tweets/{Id}
 
|-
 
|-
 
! HTTP Method
 
! HTTP Method
Line 27: Line 27:
 
===Request===
 
===Request===
 
<source lang="text">
 
<source lang="text">
POST /api/v2/me/twitter/01QQQG2MU214P05G
+
POST /api/v2/me/tweets/01QQQG2MU214P05G
 
{
 
{
 
   "operationName": "Cancel"
 
   "operationName": "Cancel"
Line 36: Line 36:
 
<source lang="text">
 
<source lang="text">
 
{
 
{
  "statusCode": 0
+
  "statusCode": 0,
 +
"referenceId": 12
 
}
 
}
 
</source>
 
</source>
 +
 
===CometD Response===
 
===CometD Response===
 
<source lang="text">
 
<source lang="text">
  {"messageType": "TwitterStateChangeMessage",
+
{  
"notificationType": "StatusChange",
+
  "messageType":"TwitterStateChangeMessage",
"referenceId": 12,
+
  "notificationType":"StatusChange",
"twitter": {"capabilities": [],
+
  "referenceId":12,
              "id": "01QQQG2MU214P05G",
+
  "twitter":{
              "state": "Canceled",
+
      "capabilities":[
              "twitterType": "Outbound",
+
 
              "uri": "http://192.168.83.25:8080/api/v2/twitters/01QQQG2MU214P05G"}}
+
      ],
 +
      "id":"01QQQG2MU214P05G",
 +
      "state":"Canceled",
 +
      "twitterType":"Outbound",
 +
      "uri":"http://192.168.83.25:8080/api/v2/tweet/01QQQG2MU214P05G"
 +
  }
 +
}
 
</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]]

Latest revision as of 07:07, June 23, 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 23, 2020, at 07:07.
Comments or questions about this documentation? Contact us for support!