what does remaining_requests mean in the response of api requested travis ci build? -
subj.
does mean in free account have limited number of api requests?
example of part of response:
{   "@type": "pending",   "remaining_requests": 9,   "repository": {     "@type": "repository", when sent first response, value 10. after second response - became 9...
i think it's hourly limit. api code here.
it says:
time_frame = 1.hour limit = 10  ...  def remaining_requests(repository)   api_builds_rate_limit = limit(repository)   return api_builds_rate_limit if access_control.full_access?   count = query(:requests).count(repository, time_frame)   count > api_builds_rate_limit ? 0 : api_builds_rate_limit - count end 
Comments
Post a Comment