The most likely reason would be that you hit the API rate limit: https://developers.podio.com/index/limits
intermittent Connection issues.
Hi Im currently using the api using php which is working beautifully so far. However i keep finding that my website will suddenly stop working because the php script created in this error:
Fatal error: Call to a member function field() on a non-object in /home/youthoas/public_html/podio/aboutusslogan.php on line 22
5 minutes later without anychanges to the website or webserver the error is gone and the website is looking as glamarous as ever. Any ideas why the intermittent connection?
Please sign in to leave a comment.
Ok. I can see the reason for this limit. The issue i have is that we are undergoing alot of work on the website and are often refreshing pages to see changes. Any way i can get this limit lifted for a temporary amount of time?
For a website you shouldn't be calling the API on every page request anyway. You'll hit the rate limit in no time when people visit the site. You need to cache the API results on your end so you can serve a cached version to website visitors and only refresh from the API at regular intervals.
For rate limit increases the instructions are in the link I include in my previous reply. :)
All the best,
Brilliant thank you for the help i will try to implement this
Here's a simple illustration of a potential cache flow using podio-php and redis to get you started: https://gist.github.com/haugstrup/4713920
Is there an example of this with user and password authentication?
I don't understand. Just substitute the line that authenticates as an app witha line that authenticates as a user?
Brilliant ok i will do that. Sorry im very new to the world of API... but am getting there slowly.