Documentation

API /user/current

ThoughtFarmer REST API Method: /user/current

Gets the user from the credentials of the user making the call to the ThoughtFarmer API.

URL:
http://yourserver.com/api/user/current
http://yourserver.com/api/1.0/user/current

Response Formats:
xml,json

HTTP Method(s):
GET

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

Parameters:

Parameter Type Description
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/user/current
{
   "AbbreviatedTitle":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "ContentId":19,
   "CreatorId":1,
   "DateModified":"\/Date(1320735298217-0800)\/",
   "DatePosted":"\/Date(1188364256700-0700)\/",
   "DatePublished":"\/Date(1215763573877-0700)\/",
   "GrandParentId":1,
   "LastModifiedBy":"...",
   "ModifiedId":7,
   "OwnerId":8,
   "ParentId":3,
   "Summary":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "Title":[
      {
         "Key":"en",
         "Value":"..."
      }
   ],
   "TreePath":"...",
   "ViewTypes":[
      18,
      6
   ],
   "Body":[
      {
         "Key":"en",
         "Value":"Latest information"
      }
   ],
   "Birthday":"\/Date(-62135568000000-0800)\/",
   "BirthdayDisplay":2,
   "DefaultCulture":"en",
   "DisplayName":"Arnie",
   "DomainLogin":"P2135893\administrator",
   "Email":"tim@openroad.uk",
   "FirstName":"Arnie",
   "ImageUrlLarge":"\/imagethumb\/248982170000\/508\/0x0\/False\/alberteinstein.jpg",
   "ImageUrlMedium":"\/imagethumb\/248982170000\/508\/250x250\/False\/alberteinstein.jpg",
   "ImageUrlSmall":"\/imagethumb\/248982170000\/508\/50x50\/False\/alberteinstein.jpg",
   "JobTitle":"Intranet Administrator",
   "LastName":"McAdmin",
   "LeaderPrimaryId":12,
   "LeaderSecondaryId":0,
   "PhoneFax":"",
   "PhoneMobile":"",
   "PhoneTel":"604-555-1212 x180",
   "SalutationId":0,
   "Status":"Demoing to Nerd Corp",
   "StatusLastUpdated":"\/Date(1297215069777-0800)\/",
   "StatusLastUpdatedRelative":"Updated Feb 8, 2011",
   "TimeZone":"Pacific Standard Time",
   "UserId":8
}