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.


On Fri, Jul 16, 2010 at 8:01 AM, Thomas Woolway <>wrote:

> 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 the
> user has revoked permissions.
> Tom
> On Fri, Jul 16, 2010 at 11:59 AM, PBro <> wrote:
>> 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 access of
>> the application via his profile.
>> So, is there something like getPermissions or maybe a callback for
>> when a users revokes access?
>> Sincerely,
>> Patrick


Matt Harris
Developer Advocate, Twitter

Reply via email to