tmhOAuth错误代码200

时间:2012-07-29 23:12:17

标签: oauth twitter twitter-oauth

我正在尝试为用户提供home_timeline:

<?php

  require_once('tmhoauth/tmhOAuth.php');

  $connection = new tmhOAuth(array(
    'consumer_key' => '*******',
    'consumer_secret' => '*******',
    'user_token' => '********',
    'user_secret' => '*********',
  )); 

  $connection -> request('GET', $connection -> url('1/statuses/home_timeline.json?include_entities=true'));

 echo($connection -> response['code']);
?>

它返回错误代码200。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

如果Twitter API返回200:https://dev.twitter.com/docs/error-codes-responses

,则一切正常