Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Check for exceeding daily photo limit #185

Open
RWAP opened this issue Jul 31, 2013 · 0 comments
Open

Check for exceeding daily photo limit #185

RWAP opened this issue Jul 31, 2013 · 0 comments

Comments

@RWAP
Copy link

RWAP commented Jul 31, 2013

At the moment, if you use update_with_media you can get an exception thrown by EpiTwitter -

Error in file : EpiTwitter.php on line number 254

Error message :

{"errors":[{"code":191,"message":"User XXX is over daily photo limit"}]}

This is thrown because the response code is 403

It would help if the code could somehow check whether the daily photo limit has been reached before posting a new status - presumably using the header: X-MediaRateLimit-Remaining (https://dev.twitter.com/docs/api/1/post/statuses/update_with_media)

I am just not certain of the best way of implementing this check...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant