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
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