Documentation

/users/{userId} [GET]

ThoughtFarmer REST API Method: /users/{userId} [GET]

Retrieve a user by id.

URL:
http://yourserver.com/api/users/{userId}

Response Formats:
JSON, XML

HTTP Method(s):
GET

Requires Authentication:
true, user making call must pass a valid token parameter

Parameters:

Parameter Type Description
userId int Required. The user id of the user to retrieve
token string Required. A valid token authentication parameter

Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - User not found

Example request
GET http://yourserver.com/api/users/{userId}
{
    "userId": 189,
    "contentId": 1073,
    "firstName": "Test",
    "lastName": "Person",
    "preferredName": "Updated preferred name",
    "salutation": "Mr",
    "email": "test.person@test.com",
    "username": "ryan",
    "jobTitle": "Chief Tester",
    "timeZone": "Pacific Standard Time",
    "defaultCulture": "fr",
    "birthday": "Jan 23",
    "phoneNumbers": {
        "fax": "777-777-7777",
        "mobile": "888-888-8888",
        "tel": "666-666-6666"
    },
    "images": {
        "small": "/profileimage/193821700000/1357/50x50/False/0,0,200,200/test.png",
        "medium": "/profileimage/193821700000/1357/250x250/False/0,0,200,200/test.png",
        "large": "/profileimage/193821700000/1357/0x0/False/0,0,200,200/test.png"
    }
}