We can't tell when an authenticated account is suspended

suspended

#1

We have a daemonized service that functions as a twitter application which reads tweets from authorized twitter user accounts every day.

Two of our internal accounts were suspended (we never tweeted anything yet, just set them up) and that brought up an edge case.

There doesn’t seem to be a method of determining that an account is suspended from a request with an authenticated token.

Requests to the home-timeline show no tweets – which is not unexpected since we provide a “since” parameter. The same thing if we request from the app’s key/secret without a user token. There is no suggestion of a suspended account in the payload or headers.

Requests to verify credentials with the user token show everything being fine, and all profile data, with no suggestion of a suspended account in the payload or headers.

Requests to the user profile are successful in all instances as well, with no suggestion of a suspended account in the payload or headers.

Am I missing something that can be used to diagnose this?


#2

You could potentially use users/show to verify - a suspended or deleted user will return an error from that endpoint I think.