久久久久久久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>

                            主站蜘蛛池模板: 欧美日韩精品专区 | 三级在线免费 | 欧美自拍视频 | 国产精品亚洲视频 | 免费在线观看av网站 | 国产精品永久久久久 | 欧美bondage紧缚视频 | 日本在线视频不卡 | 欧美13videosex性极品 | 久久久久99| 国产美女免费视频 | 一区二区三区国产好的精 | 亚洲欧美中文日韩在线v日本 | 97免费在线视频 | 成人免费淫片aa视频免费 | 国产成人精品一区二区三区网站观看 | 国产日韩欧美一区 | 成人欧美一区二区三区在线观看 | 女女百合av大片一区二区三区九县 | 久久久性色精品国产免费观看 | 欧美一级毛片久久99精品蜜桃 | 在线天堂免费中文字幕视频 | 91免费在线 | 97精品一区二区 | 午夜精品在线 | 一区二区三区成人 | 一区二区成人 | 久久9热 | 精品自拍视频 | 91精品国产一区二区三区动漫 | 韩国av网站在线观看 | 欧美综合精品 | 一区二区三区四区在线 | 国产精品久久久久久久久免费丝袜 | 国产在线观看一区二区 | 欧美中文字幕在线观看 | 国内91在线 | 视频在线h| 欧美一区免费 | 精品久久香蕉国产线看观看亚洲 | 欧美精产国品一二三区 |