Documentation

/users/username [POST]

ThoughtFarmer REST API Method: /users/username [POST]

Gets a user from the ThoughtFarmer API by the user's domain login. eg. tf\smith.

URL:
http://yourserver.com/api/users/username

Response Formats:
JSON, XML

HTTP Method(s):
POST

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

Parameters:

Parameter Type Description
username string Required. The username of the user to return
token string Required. A valid token authentication parameter

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

Example request
POST http://yourserver.com/api/user/username?username={username}
{
    "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"
    }
}