Inserting a photo

POST /v1/b2b/photos/1

Body

The photo to be uploaded in multipart file format.

Response

A list of Image Path Objects


Inserting a profile photo

POST /v1/b2b/photos/profile

Body

The photo to be uploaded in multipart file format. 

Response

A list of Image Path Objects 


Reading a photo

GET /v1/b2b/photos/{id}/{size}

Input:

id:  the id of the image you want to read

size: see sizes below (TN, PV, HR, SN)

Response

 The photo in binary format.



Fields

Field
Description
uuidA unique identifier for this image.
originalFileNameThe name of the originally uploaded file.
extensionThe extension of the originally uploaded file.
originalPathThe path to the original file on our servers.
thumbnailPathThe path to the thumbnail image on our servers.
highResPathThe path to the high resolution image on our servers.
screenPathThe path to the screen image on our servers.
previewPathThe path to the preview image on our servers.


sizes 

Standard

Size
Description
TNThumbnail 80x80 pixels
PVPreview 150x150 pixels
HRHigh Resolution 640x640 pixels
SNScreen Size 320x320 pixels


Profile

Size
Description
PTNProfile Thumbnail 35x35 pixels
PSMProfile Small 72x72 pixels
PMProfile Medium 160x160 pixels
PLProfile Large 250x250 pixels