Documentation

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.
 
URL:
http://yourserver.com/api/user/{userId}/state/{key}
http://yourserver.com/api/2.0/user/{userId}/state/{key}

Response Formats:
xml,json

HTTP Method(s):
GET
 
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

Parameters:
 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
GET http://yourserver.com/api/user/{userId}/state/{key}
"2"