【问题标题】:tmhOAuth error code 200tmhOAuth 错误代码 200
【发布时间】:2012-07-30 10:09:09
【问题描述】:

我正在尝试获取用户 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。

有什么想法吗?

【问题讨论】:

  • 您确定200错误 代码吗?预期的响应代码是什么/响应的其余部分包含什么?

标签: oauth twitter twitter-oauth


【解决方案1】:

如果 Twitter API 返回 200 则一切正常:https://dev.twitter.com/docs/error-codes-responses

【讨论】:

    猜你喜欢
    • 2013-09-08
    • 2020-08-31
    • 1970-01-01
    • 2015-07-01
    • 2020-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-20
    相关资源
    最近更新 更多