[twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread PBro
Hi, I would like to know if it is possible to check if a user still allows my application to access his twitter account. We are building an application that will post tweets on the user's account and read new tweets from his account. Therefore i would like to check if the user hasn't revoked

Re: [twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread Thomas Woolway
I'd have thought calling verify_credentials would do it - you'll get a 401 and a specific error message to tell you that the key is no longer valid. Alternatively, why not try to perform your actions (like posting a tweet or retrieving tweets) and if they return a 401, use that to indicate that

Re: [twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread Matt Harris
Tom is correct. The easiest way to check if your application is still allowed by the user is to call verify_credentials. This is a read-only call without any parameters which will return 200 OK if you are allowed access and 401 if you are not. Best, Matt On Fri, Jul 16, 2010 at 8:01 AM, Thomas