Single tweet and request media field
a single Tweet ID
GET
https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/single-tweet/request-media-field/
Query Parameters
Name
Type
Description
name*
String
qantor.co.id
connection_name*
String
twitter-1
id*
String
1541734785500184577
Headers
Name
Type
Description
x-api-key*
String
43c464439b5507293ba7b315c9875907
{
"data": {
"created_at": "2022-06-28T10:46:31.000Z",
"source": "Twitter for iPhone",
"text": "Are you ready to get the WL? \nRT and Tag Your Friends \n100 interactions guaranteed mint. Access https://t.co/hxdRilqX0T",
"entities": {
"urls": [
{
"start": 96,
"end": 119,
"url": "https://t.co/hxdRilqX0T",
"expanded_url": "https://twitter.com/BoredJametPC/status/1541734785500184577/photo/1",
"display_url": "pic.twitter.com/hxdRilqX0T",
"media_key": "3_1541734773617729536"
}
]
},
"id": "1541734785500184577",
"author_id": "1487715702920609793",
"attachments": {
"media_keys": [
"3_1541734773617729536"
]
},
"lang": "en",
"possibly_sensitive": false
},
"includes": {
"media": [
{
"height": 1800,
"type": "photo",
"width": 1800,
"media_key": "3_1541734773617729536",
"url": "https://pbs.twimg.com/media/FWVXm69aIAABMW_.jpg"
}
]
}
}
{
"errors": [
{
"value": "154173478550018457",
"detail": "Could not find tweet with id: [154173478550018457].",
"title": "Not Found Error",
"resource_type": "tweet",
"parameter": "id",
"resource_id": "154173478550018457",
"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-media-field?name=qantor.co.id&connection_name=twitter-1&id=1541734785500184577' \
--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-media-field?name=qantor.co.id&connection_name=twitter-1&id=1541734785500184577',
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-media-field?name=qantor.co.id&connection_name=twitter-1&id=1541734785500184577',
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