Create a image on your account with the specified parameters. Don't forget to specify POST as the request method as GET will call the list action rather than create.
https://streamio.com/api/v1/images.format
POST
201
{ | |
"account_id": "5d00b3796f8d8d4d7d000002", | |
"codec": "PNG", | |
"created_at": "2019-06-12T08:59:19.509Z", | |
"height": 41, | |
"size": 7047, | |
"tags": [], | |
"title": "streamio vattenstämpel", | |
"updated_at": "2021-05-12T11:45:14.563Z", | |
"width": 150, | |
"id": "5d00bee76f8d8de062000011", | |
"transcodings": [ | |
{ | |
"progress": 1.0, | |
"size": 1570, | |
"state": "ready", | |
"title": "thumb", | |
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_thumb.jpg?r=0", | |
"width": 150, | |
"height": 41 | |
}, | |
{ | |
"progress": 1.0, | |
"size": 1570, | |
"state": "ready", | |
"title": "original", | |
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_original.jpg?r=0", | |
"width": 150, | |
"height": 41 | |
}, | |
{ | |
"progress": 1.0, | |
"size": 1570, | |
"state": "ready", | |
"title": "normal", | |
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_normal.jpg?r=0", | |
"width": 150, | |
"height": 41 | |
} | |
] | |
} |
Simplest case scenario is to just post with the file parameter set to a image file on your hard drive.
curl -u username:password \ -F file=@path/to/image.jpg \ https://streamio.com/api/v1/images.json