Media uploads are performed as a POST to http://dart.ionlake.com/dart/upload with a mulit-part form-data request body. The request needs to have the media as a form item. No other form items are required.
Get Media Example
{"action":"get_media"}
Get Media Response Example
{
"bucket":"<media bucket>",
"media":[...]
}
Media Response Example: Media
{
"id":"<long>",
"name":"<String>",
"contentType":"<String (mime type)>",
"height":"<int>",
"width":"<int>"
}
Delete Media
{"action":"delete_media","id":"123"}
Field |
Required |
Description |
id |
Yes |
The id of the media to delete |
Comments
0 comments
Please sign in to leave a comment.