Simplest PHP example for retrieving user_timeline with Twitter API version 1.1

前端 未结 14 2329
盖世英雄少女心
盖世英雄少女心 2020-11-21 17:37

Because of the Twitter API 1.0 retirement as of June 11th 2013, the script below does not work anymore.

// Create curl resource 
$ch = curl_init(); 
// Set u         


        
14条回答
  •  太阳男子
    2020-11-21 18:00

    You'll need a to create an "app" on Twitter (and you need a Twitter account to do this).

    Then, you need to use OAuth to make an authorized request to Twitter.

    You can use the GET statuses/user_timeline resource to get a list of recent tweets.

提交回复
热议问题