Documentation

API /user/{userId}/photo

ThoughtFarmer REST API Method: /user/{userId}/photo

Gets the byte array of a photo for a user's id.
 
URL:
http://yourserver.com/api/user/{userId}/photo
http://yourserver.com/api/2.0/user/{userId}/photo


Response Formats:
byte array

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 photo 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/user/{userId}/photo?token={token}
...byte array of photo...