Documentation

API /user/username

ThoughtFarmer REST API Method: /user/username

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

URL:
http://yourserver.com/api/user/username
http://yourserver.com/api/2.0/user/username

Response Formats:
xml,json

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
401 - Token parameter is invalid
404 - User not found
500 - Missing username parameter

Example request
POST http://yourserver.com/api/user/username
POST Data username={username}&token={token}
{
    "userId": 2961,
    "contentId": 14608,
    "firstName": "Ben",
    "lastName": "Affleck",
    "preferredName": "",
    "salutation": null,
    "email": "baffleck@thoughtfarmer.com",
    "username": "TF\baffleck",
    "jobTitle": "",
    "timeZone": "Eastern Standard Time",
    "defaultCulture": "",
    "birthday": "",
    "phoneNumbers": {
        "fax": "",
        "mobile": "",
        "tel": "604-582-2883"
    },
    "images": {
        "small": "/themeimage/288000000000/347/50x50/False/profile-default.png",
        "medium": "/themeimage/288000000000/347/250x250/False/profile-default.png",
        "large": "/themeimage/288000000000/347/0x0/False/profile-default.png"
    }
}