Hey
In this API
https://dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid
you show a example
{
"coordinates": null,
"favorited": false,
"truncated": false,
"created_at": "Wed Jun 06 20:07:10 +0000 2012",
"id_str": "210462857140252672",
"entities": {
"urls": [
{
"expanded_url": "https://dev.twitter.com/terms/display-guidelines",
"url": "https://t.co/Ed4omjYs",
"indices": [
76,
97
],
…
and now when I use this API in php:
require_once 'twitteroauth/twitteroauth.php';
define("CONSUMER_KEY", "");
define("CONSUMER_SECRET", "");
define("OAUTH_TOKEN", "");
define("OAUTH_SECRET", "");
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET);
$content = $connection->get('account/verify_credentials');
$statuses = $connection->get('statuses/show', array('id' => "436143606827859968", 'include_entities' => true, "omit_script" => true));
foreach ($statuses as $item) {
print_r($item);
I got this :
Wed Feb 19 14:21:53 +0000 2014
436143606827859968
436143606827859968
#TabrizWT الان هم @gadirsa1 داره در مورد #keywords توضیح میده
Twitter for iPhone
stdClass Object
(
[id] => 55643954
[id_str] => 55643954
[name] => Farzam
[screen_name] => pharzam
[location] =>
[description] => Web Developer(clean coder)
[url] => http://t.co/lARgT0MNOd
[entities] => stdClass Object
(
[url] => stdClass Object
(
[urls] => Array
(
[0] => stdClass Object
(
[url] => http://t.co/lARgT0MNOd
[expanded_url] => http://farzam.me
[display_url] => farzam.me
[indices] => Array
(
[0] => 0
[1] => 22
)
)
)
)
any idea please?