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 |
---|---|
uuid | A unique identifier for this image. |
originalFileName | The name of the originally uploaded file. |
extension | The extension of the originally uploaded file. |
originalPath | The path to the original file on our servers. |
thumbnailPath | The path to the thumbnail image on our servers. |
highResPath | The path to the high resolution image on our servers. |
screenPath | The path to the screen image on our servers. |
previewPath | The path to the preview image on our servers. |
sizes
Standard
Size | Description |
---|---|
TN | Thumbnail 80x80 pixels |
PV | Preview 150x150 pixels |
HR | High Resolution 640x640 pixels |
SN | Screen Size 320x320 pixels |
Profile
Size | Description |
---|---|
PTN | Profile Thumbnail 35x35 pixels |
PSM | Profile Small 72x72 pixels |
PM | Profile Medium 160x160 pixels |
PL | Profile Large 250x250 pixels |