PHP/Twitter oAuth - Automated Tweets

前端 未结 2 2034
半阙折子戏
半阙折子戏 2021-02-10 06:32

Im using the following code to read to consumer_key and consumer_secret from config.php, pass it to twitter and retrieve some bits of information back

2条回答
  •  既然无缘
    2021-02-10 07:06

    In your second script, it looks like you aren't setting the Consumer Key and Consumer Secret when you create your TwitterOAuth instance.

    // Initiate a TwitterOAuth using those access tokens
    $oauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
    

提交回复
热议问题