Locked account


How would we identify if an account is locked, is there property from the rest api we can use to determine the locked status?. At the moment the only way can see is if the user object status property returns null.




If by locked you mean private: users/show will still work for a Private account - returning a User object with: "protected":true
in the json.

If locked means Suspended, you get:
{"errors":[{"code":63,"message":"User has been suspended."}
as a response - but some libraries won’t return the full error and just throw an exception.

Deleted accounts, or ids / screen names that don’t exist return:
{"errors":[{"code":50,"message":"User not found."}]}