Closed mbarwick83 closed 8 years ago
You'll want to use $twitter->getLastXHeaders()
.
That get's a list if I var_dump...but I still can't echo out "x_rate_limit_remaining". How would I call rate_limit using getLastXHeaders?
It returns an array so you then access it just like you were initially trying.
$twitter->getLastXHeaders()["x_rate_limit_remaining"]
Note that the response is a string "0"
not an integer.
Hmm, I tried that last night. Let me revisit it with a fresh mind. Thanks for your help. This library is :100: :+1:
doesn't work for me as well
I can't seem to get this working. I want to check the remaining rate limit value...as below. But I'm getting an error that
$headers
is a undefined property. Help?