Delete tweet
DELETE https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/delete-tweet/
Query Parameters
Name
Type
Description
name*
String
qantor.co.id
connection_name*
String
twitter-1
consumer_key*
String
A2e5O2qsMA7BLUTPv5Q5NJVQ6
consumer_secret*
String
rfIzsxYoLbzbYEj5mwQ9imtusVwua6NBabv8TK57xGkzgxtFkN
access_token*
String
245297600-2EScP0ZudcOPpFwJ6yo2TlSpAmLTUpyXX1zdmh13
token_secret*
String
d2dmLjbuK4AYY9Cfq2xF52UdSev21ewNJrirUaB4Ok4vX
id*
String
1542757090959278080
Headers
Name
Type
Description
x-api-key*
String
43c464439b5507293ba7b315c9875907
{
"deleted": true
}{
"type": "response",
"code": 400,
"error": {
"errors": [
{
"parameters": {
"id": [
"15427570909592780809"
]
},
"message": "The `id` query parameter value [15427570909592780809] is not valid"
}
],
"title": "Invalid Request",
"detail": "One or more parameters to your request was invalid.",
"type": "https://api.twitter.com/2/problems/invalid-request"
},
"rateLimit": {
"limit": 50,
"remaining": 46,
"reset": 1656658514
},
"headers": {
"date": "Fri, 01 Jul 2022 06:41:35 UTC",
"server": "tsa_b",
"set-cookie": [
"guest_id=v1%3A165665769510087084; Max-Age=34214400; Expires=Tue, 01 Aug 2023 06:41:35 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None"
],
"api-version": "2.45",
"content-type": "application/json; charset=utf-8",
"cache-control": "no-cache, no-store, max-age=0",
"content-length": "219",
"x-access-level": "read-write",
"x-frame-options": "SAMEORIGIN",
"content-encoding": "gzip",
"x-xss-protection": "0",
"x-rate-limit-limit": "50",
"x-rate-limit-reset": "1656658514",
"content-disposition": "attachment; filename=json.json",
"x-content-type-options": "nosniff",
"x-rate-limit-remaining": "46",
"strict-transport-security": "max-age=631138519",
"x-response-time": "18",
"x-connection-hash": "164d2814d275d418ae05cb3677072614d431e9b5f13f2c6df2d8fb448d8a3176",
"connection": "close"
}
}curl --location --request DELETE 'https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/delete-tweet?name=qantor.co.id&connection_name=twitter-1&consumer_key=A2e5O2qs...&consumer_secret=rfIzsxYo...&access_token=245297600-2EScP0Zu....&token_secret=d2dmLjbuK....&id=15427570909592780809' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'var axios = require('axios');
var config = {
method: 'delete',
url: 'https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/delete-tweet?name=qantor.co.id&connection_name=twitter-1&consumer_key=A2e5O2qs...&consumer_secret=rfIzsxYo...&access_token=245297600-2EScP0Zu....&token_secret=d2dmLjbuK....&id=15427570909592780809',
headers: {
'x-api-key': '43c464439b5507293ba7b315c9875907'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/delete-tweet?name=qantor.co.id&connection_name=twitter-1&consumer_key=A2e5O2qs...&consumer_secret=rfIzsxYo...&access_token=245297600-2EScP0Zu....&token_secret=d2dmLjbuK....&id=15427570909592780809',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => array(
'x-api-key: 43c464439b5507293ba7b315c9875907'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated