久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <i id='hi4G7'><tr id='hi4G7'><dt id='hi4G7'><q id='hi4G7'><span id='hi4G7'><b id='hi4G7'><form id='hi4G7'><ins id='hi4G7'></ins><ul id='hi4G7'></ul><sub id='hi4G7'></sub></form><legend id='hi4G7'></legend><bdo id='hi4G7'><pre id='hi4G7'><center id='hi4G7'></center></pre></bdo></b><th id='hi4G7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hi4G7'><tfoot id='hi4G7'></tfoot><dl id='hi4G7'><fieldset id='hi4G7'></fieldset></dl></div>

      <tfoot id='hi4G7'></tfoot>
      • <bdo id='hi4G7'></bdo><ul id='hi4G7'></ul>

      <small id='hi4G7'></small><noframes id='hi4G7'>

        <legend id='hi4G7'><style id='hi4G7'><dir id='hi4G7'><q id='hi4G7'></q></dir></style></legend>
      1. Twitter 中的關注者數量

        Follower count number in Twitter(Twitter 中的關注者數量)

      2. <i id='jS2fJ'><tr id='jS2fJ'><dt id='jS2fJ'><q id='jS2fJ'><span id='jS2fJ'><b id='jS2fJ'><form id='jS2fJ'><ins id='jS2fJ'></ins><ul id='jS2fJ'></ul><sub id='jS2fJ'></sub></form><legend id='jS2fJ'></legend><bdo id='jS2fJ'><pre id='jS2fJ'><center id='jS2fJ'></center></pre></bdo></b><th id='jS2fJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jS2fJ'><tfoot id='jS2fJ'></tfoot><dl id='jS2fJ'><fieldset id='jS2fJ'></fieldset></dl></div>

          <bdo id='jS2fJ'></bdo><ul id='jS2fJ'></ul>
        • <small id='jS2fJ'></small><noframes id='jS2fJ'>

            <tfoot id='jS2fJ'></tfoot>
            <legend id='jS2fJ'><style id='jS2fJ'><dir id='jS2fJ'><q id='jS2fJ'></q></dir></style></legend>

                    <tbody id='jS2fJ'></tbody>
                  本文介紹了Twitter 中的關注者數量的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  如何使用 PHP 獲取我的粉絲數.

                  How to get my followers count number with PHP.

                  我在這里找到了這個答案: Twitter 粉絲計數,但它不起作用,因為API 1.0 不再有效.

                  I found this answer here: Twitter follower count number, but it is not working because API 1.0 is no longer active.

                  我也嘗試過使用此 URL 的 API 1.1:https://api.twitter.com/1.1/users/lookup.json?screen_name=google 但顯示錯誤(錯誤的身份驗證數據).

                  I have also tried with API 1.1 using this URL: https://api.twitter.com/1.1/users/lookup.json?screen_name=google but is is showing an error(Bad Authentication data).

                  這是我的代碼:

                  $data = json_decode(file_get_contents('http://api.twitter.com/1.1/users/lookup.json?screen_name=google'), true);
                  echo $data[0]['followers_count'];
                  

                  推薦答案

                  Twitter API 1.0 已棄用且不再處于活動狀態.使用 REST 1.1 API,您需要 oAuth 身份驗證才能從 Twitter 檢索數據.

                  Twitter API 1.0 is deprecated and is no longer active. With the REST 1.1 API, you need oAuth authentication to retrieve data from Twitter.

                  改用這個:

                  <?php 
                  require_once('TwitterAPIExchange.php'); //get it from https://github.com/J7mbo/twitter-api-php
                  
                  /** Set access tokens here - see: https://dev.twitter.com/apps/ **/
                  $settings = array(
                  'oauth_access_token' => "YOUR_OAUTH_ACCESS_TOKEN",
                  'oauth_access_token_secret' => "YOUR_OAUTH_ACCESS_TOKEN_SECRET",
                  'consumer_key' => "YOUR_CONSUMER_KEY",
                  'consumer_secret' => "YOUR_CONSUMER_SECRET"
                  );
                  
                  $ta_url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';
                  $getfield = '?screen_name=REPLACE_ME';
                  $requestMethod = 'GET';
                  $twitter = new TwitterAPIExchange($settings);
                  $follow_count=$twitter->setGetfield($getfield)
                  ->buildOauth($ta_url, $requestMethod)
                  ->performRequest();
                  $data = json_decode($follow_count, true);
                  $followers_count=$data[0]['user']['followers_count'];
                  echo $followers_count;
                  ?>
                  

                  在某些情況下,解析 XML 可能更容易.

                  Parsing the XML might be easier in some cases.

                  這是一個解決方案(經過測試):

                  <?php 
                  $xml = new SimpleXMLElement(urlencode(strip_tags('https://twitter.com/users/google.xml')), null, true);
                  echo "Follower count: ".$xml->followers_count;
                  ?>
                  

                  希望這有幫助!

                  這篇關于Twitter 中的關注者數量的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                • <legend id='w8NAX'><style id='w8NAX'><dir id='w8NAX'><q id='w8NAX'></q></dir></style></legend>
                  <i id='w8NAX'><tr id='w8NAX'><dt id='w8NAX'><q id='w8NAX'><span id='w8NAX'><b id='w8NAX'><form id='w8NAX'><ins id='w8NAX'></ins><ul id='w8NAX'></ul><sub id='w8NAX'></sub></form><legend id='w8NAX'></legend><bdo id='w8NAX'><pre id='w8NAX'><center id='w8NAX'></center></pre></bdo></b><th id='w8NAX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='w8NAX'><tfoot id='w8NAX'></tfoot><dl id='w8NAX'><fieldset id='w8NAX'></fieldset></dl></div>
                    <tbody id='w8NAX'></tbody>
                      <bdo id='w8NAX'></bdo><ul id='w8NAX'></ul>
                      • <small id='w8NAX'></small><noframes id='w8NAX'>

                          <tfoot id='w8NAX'></tfoot>

                            主站蜘蛛池模板: 色一级片 | 亚洲国产精品久久 | 国产一区二区电影网 | 天天夜干 | 久久国产精彩视频 | 亚洲一区国产 | 337p日本欧洲亚洲大胆精蜜臀 | 国产情侣久久 | 精品国产乱码久久久久久闺蜜 | 国产精品久久国产精品久久 | 中文字幕免费视频 | 欧美日一区二区 | 影视一区 | 最新国产精品精品视频 | 日本久久网站 | 国产精品日产欧美久久久久 | 成人性生交大片免费看r链接 | 亚洲高清在线观看 | 国产精品久久精品 | 天天干天天操天天射 | 在线日韩| 免费在线观看h片 | 精品视频一区二区三区 | 欧美国产一区二区 | 国产精品视频在线免费观看 | 欧美激情国产日韩精品一区18 | 国产欧美一区二区三区在线看 | 久久er精品 | 国产成人网 | 免费国产视频 | 久久综合一区二区三区 | 欧美不卡在线 | 精品久久久网站 | 亚洲精品区| 成人av一区 | 亚洲高清视频在线观看 | 成av在线 | 欧美亚洲视频在线观看 | 97精品久久 | 国产一区二区三区高清 | 特级毛片www |