POST api/2.0/people/{userid}/photo/thumbnails
Creates photo thumbnails 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
|
System.String
|
|
X
sent in body
|
Horizontal coordinate
|
System.Int32
|
|
Y
sent in body
|
Vertical coordinate
|
System.Int32
|
|
Width
sent in body
|
Thumbnail width
|
System.Int32
|
|
Height
sent in body
|
Thumbnail height
|
System.Int32
|
|
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": "some text",
"Retina": "some text",
"Max": "some text",
"Big": "some text",
"Medium": "some text",
"Small": "some text"
}
}
text/xml
<result>
<status>0</status>
<response>
<Original>some text</Original>
<Retina>some text</Retina>
<Max>some text</Max>
<Big>some text</Big>
<Medium>some text</Medium>
<Small>some text</Small>
</response>
</result>