dongyong1400 2015-05-05 14:59
浏览 44

Twitter PHP API - 地方

I have created a simple twitter app to show trends in a location. It seems to work but compared to http://trendsmap.com/local/gb/liverpool it shows different results.

my code:

<?php
require_once('TwitterAPIExchange.php');

/** Set access tokens here - see: https://dev.twitter.com/apps/ **/
$settings = array(
    'oauth_access_token' => "1",
    'oauth_access_token_secret' => "1",
    'consumer_key' => "1",
    'consumer_secret' => "1"
);

$url = "https://api.twitter.com/1.1/trends/place.json";

$requestMethod = "GET";

$getfield = '?id=26734';

$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getfield)
             ->buildOauth($url, $requestMethod)
             ->performRequest();
?>

It returns data but not as expected, any ideas what I am doing wrong?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 fluent的在模拟压强时使用希望得到一些建议
    • ¥15 STM32驱动继电器
    • ¥15 Windows server update services
    • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
    • ¥15 模糊pid与pid仿真结果几乎一样
    • ¥15 java的GUI的运用
    • ¥15 Web.config连不上数据库
    • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
    • ¥15 怎么配置广告联盟瀑布流
    • ¥15 Rstudio 保存代码闪退