Single tweet and request place fields
a single Tweet ID
GET https://us-central1-appgregator.cloudfunctions.net/twitter/tweet/single-tweet/request-place-field/single-tweet/request-place-field/
Query Parameters
Name
Type
Description
name*
String
qantor.co.id
connection_name*
String
twitter-1
id*
String
1136017751028449283
Headers
Name
Type
Description
x-api-key*
String
43c464439b5507293ba7b315c9875907
{
"data": {
"geo": {
"place_id": "01a9a39529b27f36"
},
"id": "1136017751028449283",
"text": "We’re getting ready to #TapIntoTwitter with our NYC developer community! See you soon @TwitterNYC https://t.co/5rEn5dhsAq"
},
"includes": {
"places": [
{
"place_type": "city",
"country_code": "US",
"id": "01a9a39529b27f36",
"country": "United States",
"full_name": "Manhattan, NY",
"name": "Manhattan",
"geo": {
"type": "Feature",
"bbox": [
-74.026675,
40.683935,
-73.910408,
40.877483
],
"properties": {}
}
}
]
}
}{
"errors": [
{
"value": "113601775102844928",
"detail": "Could not find tweet with id: [113601775102844928].",
"title": "Not Found Error",
"resource_type": "tweet",
"parameter": "id",
"resource_id": "113601775102844928",
"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-place-field?name=qantor.co.id&connection_name=twitter-1&id=1136017751028449283' \
--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-place-field?name=qantor.co.id&connection_name=twitter-1&id=1136017751028449283',
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-place-field?name=qantor.co.id&connection_name=twitter-1&id=1136017751028449283',
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