API /user/{userId}/state/{key}

ThoughtFarmer REST API Method: /user/{userId}/state/{key}

Gets the user state value for key for the supplied user id.

Response Formats:

HTTP Method(s):
Requires Authentication:
true, user making call must pass a valid token parameter and to view this value, the requesting user must be an administrator or the user being accessed

 Parameter Type Description
userId int Required. The user id of the user to access the state of
key string Required. The key of the user state to get the value for
token string  Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
403 - You are not allowed to view the userstate
404 - You do not have permission to view the user

Example request