2
API(https://dev.twitter.com/docs/api/1/get/users/show)を使用することができますが、どうすればこの情報をウェブサイトに表示できますか?例えば。 'Username'には 'follower count'があります。ここでTwitterのフォロワーを表示ウェブサイトでカウント?
API(https://dev.twitter.com/docs/api/1/get/users/show)を使用することができますが、どうすればこの情報をウェブサイトに表示できますか?例えば。 'Username'には 'follower count'があります。ここでTwitterのフォロワーを表示ウェブサイトでカウント?
あなたが行く:
<?php
$url = "http://api.twitter.com/1/users/show.json?screen_name=jjmpsp&include_entities=true";
$feed = file_get_contents($url);
$twitter_decoded = json_decode($feed);
echo $twitter_decoded->followers_count;
?>