Single tweet and request tweet fields
a single Tweet ID
GET https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/single-tweet/request-field/
Query Parameters
Name
Type
Description
name*
String
qantor.co.id
connection_name*
String
twitter-1
id*
String
1538562625868419072
Headers
Name
Type
Description
x-api-key*
String
43c464439b5507293ba7b315c9875907
{
"data": {
"id": "1538562625868419072",
"created_at": "2022-06-19T16:41:29.000Z",
"lang": "en",
"author_id": "1496058735134851075",
"text": "MINTING IS LIVE!\n\nour minting is going to be FREE for an HOUR, 3 TIMES a day!\nEST 01:00 PM / 09:00 PM / 05:00 AM\n\n300 FREE PASSES PER PHASE! ๐ฅ",
"source": "Twitter Web App",
"possibly_sensitive": false
}
}{
"errors": [
{
"value": "26214121740",
"detail": "Could not find tweet with id: [26214121740].",
"title": "Not Found Error",
"resource_type": "tweet",
"parameter": "id",
"resource_id": "26214121740",
"type": "https://api.twitter.com/2/problems/resource-not-found"
}
]
}curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/single-tweet/request-field?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/single-tweet/request-field?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072',
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/single-tweet/request-field?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: 43c464439b5507293ba7b315c9875907'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated