Tigris Social Api

<back to all web services

FindPicture

The following routes are available for this service:
GET/Pictures/{ParticipantId}Retrieve a Picture (Avatar) for a Participant.
Parameters:
NameParameterData TypeRequiredDescription
ParticipantIdpathstringYesThe Id field is a GUID uniquely identifying the Tigris participant.
ImageHeightquerystringNoIf not null, indicates the height (in pixels) of the scaled down version of the picture.
ImageWidthquerystringNoIf not null, indicates the width (in pixels) of the scaled down version of the picture.
UseUnreadPostsImagequerystringNoIf true, substitute standard avatar with unread posts image

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/FindPicture HTTP/1.1 
Host: api.tigris.mymitchell.com 
Content-Type: application/xml
Content-Length: length

<FindPicture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mi.Sno.Tigris.TigrisApi.ServiceModel.InputModels.Pictures">
  <ImageHeight>0</ImageHeight>
  <ImageWidth>0</ImageWidth>
  <ParticipantId>00000000-0000-0000-0000-000000000000</ParticipantId>
  <UseUnreadPostsImage>false</UseUnreadPostsImage>
</FindPicture>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomHttpResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types" />