Jump to: navigation, search

Save

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

Overview

Saves a Twitter interaction.

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

Parameters

Parameter Value
operationName Save
twitter Specified data with Twitter parameters. (mandatory)

Twitter Parameters

Parameter Value
from A user name for a Twitter account.
message The actual message to send. The body should be plain text.

Samples

Request Without a Twitter Resource

Request

POST api/v2/me/tweets/01QQQG2MU214P066
 {
    "operationName": "Save"
 }

HTTP Response

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

CometD Response

{  
   "messageType":"TwitterStateChangeMessage",
   "notificationType":"TwitterSaved",
   "referenceId":40,
   "twitter":{  
      "capabilities":[  
         "Cancel",
         "Send",
         "AddComment",
         "AttachUserData",
         "UpdateUserData",
         "DeleteUserData",
         "SetDisposition",
         "SetInFocus",
         "Transfer"
      ],
      "id":"01QQQG2MU214P066",
      "state":"Composing",
      "twitterType":"Outbound",
      "uri":"http://192.168.83.25:8080/api/v2/tweet/01QQQG2MU214P066",
      "userData":{  
         "UserData2":123456789
      }
   }
}

Request With a Twitter Resource

Request

POST api/v2/me/tweets/01QQQG2MU214P069
 {
    "operationName": "Save",
    "twitter" : 
        {
         "from": "vitaliy_onv",
         "message": "Hello saved twitter!"
        }
 }

HTTP Response

{
  "statusCode": 0
}

CometD Response

{  
   "messageType":"TwitterStateChangeMessage",
   "notificationType":"TwitterSaved",
   "referenceId":16,
   "twitter":{  
      "capabilities":[  
         "Cancel",
         "Send",
         "AddComment",
         "AttachUserData",
         "UpdateUserData",
         "DeleteUserData",
         "SetDisposition",
         "SetInFocus",
         "Transfer"
      ],
      "from":"vitaliy_onv",
      "id":"01QQQG2MU214P069",
      "message":"Hello saved twitter!",
      "state":"Composing",
      "subject":"Hello saved twitter!",
      "twitterType":"Outbound",
      "uri":"http://192.168.83.25:8080/api/v2/tweet/01QQQG2MU214P069",
      "userData":{  
         "FromAddress":"vitaliy_onv",
         "UserData2":123456789
      }
   }
}
This page was last edited on June 24, 2020, at 09:32.
Comments or questions about this documentation? Contact us for support!