android - How to fix "your api request count has exceeded?" for tmdb.org? -


my code working fine initially, of sudden i'm not able display posters on app. i'm getting particular error. i've removed while(true) loops. please help.

you making many api requests.

from tmdb.org faq:

we rate limit requests 30 requests every 10 seconds.

you should make sure app never uses more that. how implement you, keep track of request counter that:

  • decrements every time make request
  • resets 30 or every ten seconds
  • only allows requests continue if positive

in general, should try query api little possible: cache results in app as can.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -