images.create
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) User ID
|
|
} |
|
|
array |
images ( |
|
struct |
{ |
|
string |
url |
Public URL to CDN storage
|
int |
width |
Width of image in pixels
|
int |
height |
Height of image in pixels
|
int |
size |
Size of image in KB
|
string |
type |
Image format type:
|
string |
sha1_checksum |
Checksum of file and user_id
|
|
} |
|
|
|
) |
|
|
Response
struct |
{ |
|
string |
statusMessage |
Status description
|
array |
ids ( |
Array of record IDs in same order as input metadata
|
|
) |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
image_access_denied
image_height_too_large
image_height_too_low
image_no_rule_set_passed
image_ratio_incorrect
image_too_large
image_width_too_large
image_width_too_low
user_access_denied