Closed hkong-mitre closed 8 months ago
Hello,
As 1.15.2 it is now available in rateLimit.day
property.
A rateLimit
object is a TwitterRateLimit
interface SingleTwitterRateLimit {
limit: number;
reset: number;
remaining: number;
}
interface TwitterRateLimit extends SingleTwitterRateLimit {
day?: SingleTwitterRateLimit;
}
How do I use this library to get the
x-app-limit-24hour-reset
,x-app-limit-24hour-limit
, andx-app-limit-24hour-remaining
header properties?I tried using the
@twitter-api-v2/plugin-rate-limit
plugin, using this code in the examples, but it returns therateLimit
property, whereas I need thex-app-limit-24hour-x
header properties, which are different and (for my application at least, more useful).Thank you in advance,