POST api/2.0/people/{userid}/photo/thumbnails
Creates a photo thumbnail by coordinates of the original image specified in the request.
Name |
Description |
Type |
Example |
userid
sent in url
|
User ID
|
string
|
some text
|
tmpFile
sent in body
|
Path to the temporary file
|
string
|
some text
|
x
sent in body
|
Horizontal coordinate
|
number
|
1234
|
y
sent in body
|
Vertical coordinate
|
number
|
1234
|
width
sent in body
|
Thumbnail width
|
number
|
1234
|
height
sent in body
|
Thumbnail height
|
number
|
1234
|
POST api/2.0/people/%22some+text%22/photo/thumbnails
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"tmpFile": "some text",
"x": 1234,
"y": 1234,
"width": 1234,
"height": 1234
}
application/json
{
"status": 0,
"response": {
"Original": "default_user_photo_size_1280-1280.png",
"Retina": "default_user_photo_size_360-360.png",
"Max": "default_user_photo_size_200-200.png",
"Big": "default_user_photo_size_82-82.png",
"Medium": "\"default_user_photo_size_48-48.png",
"Small": "default_user_photo_size_32-32.png"
}
}
text/xml
<result>
<status>0</status>
<response>
<Original>default_user_photo_size_1280-1280.png</Original>
<Retina>default_user_photo_size_360-360.png</Retina>
<Max>default_user_photo_size_200-200.png</Max>
<Big>default_user_photo_size_82-82.png</Big>
<Medium>"default_user_photo_size_48-48.png</Medium>
<Small>default_user_photo_size_32-32.png</Small>
</response>
</result>