douti19680318 2013-10-30 20:27 采纳率: 0%
浏览 86
已采纳

使用Twitter的REST API检索速率限制状态

I'm working with the REST API from Twitter, using abraham's twitteroauth lib. I'm trying to get the rate limit status of my api key to be able to show it directly on my admin panel, I'm using something like :

$rate = $connection->get('application/rate_limit_status');
print_r($rate->resources->statuses);

But I have no idea how to get for example only the '/statuses/home_timeline' status. I've tried several things like $rate->resources->statuses->'/statuses/home_timeline' or $rate->resources->statuses['/statuses/home_timeline'] but nothing seems to work.

Can someone maybe get me on the right way ?

  • 写回答

1条回答 默认 最新

  • duangouhui0446 2014-02-06 06:33
    关注

    Try $rate->resources->statuses->{'/statuses/home_timeline'}

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真