API
Image Recognition API
Uploads
methods allow you to upload a photo from a file or link and get information about the photo post post /uploads upload images to the service only jpeg images are supported you can also upload an image by url https //docs eyrene com/uploads#qa post uploadsuploadsbyurl note the number of requests to the point is limited to 100 requests per minute { "tab" "request", "url" "https //instance name/api/v1 5/uploads", "name" "request example", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "description" "string in \\"token xxxxxx \\" format " } ], "bodydataparameters" \[ { "kind" "required", "name" "datafile", "type" "string", "description" "image in jpeg " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "zoteukfoi4jsfunenn9du", "code" "{\n \\"id\\" 156673,\n \\"url\\" \\"https /test eyrene com/media/12345678 1234 5678 1234 567812345678 jpg\\",\n \\"width\\" 720,\n \\"height\\" 1280,\n \\"created date\\" \\"2016 08 31t10 32 15 687287z\\",\n \\"duplicate\\" false\n}", "language" "201", "customlabel" "" } ], "selectedlanguageid" "zoteukfoi4jsfunenn9du" }, "examples" { "languages" \[ { "id" "mokar1whiihffccyhknsp", "code" "curl i x post\n https //test eyrene com/api/v1 5/uploads/ \n h ‘authorization token 39fbb6e9 fbf9 459a 9e1b 416dbcf51875e’ \n f \\"datafile=@/path/to/file/filename jpg\\"", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "mokar1whiihffccyhknsp" }, "description" "post /uploads", "currentnewparameter" { "label" "form parameter", "value" "formdataparameters" } } response parameters ​ https //help inspector cloud com/en/docs/api/backend/methods/v1 5/upload/uploads#response definitions id string image id width integer image width in pixels height integer image height in pixels url url image url created date datetime date and time when the image was uploaded duplicate bool the value is "true/false" "true" if the file is a duplicate post post /uploads/uploads by url upload image to the service by url only jpeg images are supported you can also upload an image by /uploads https //docs eyrene com/uploads#ou post uploads note the number of requests to the point is limited to 100 requests per minute { "tab" "request", "url" "https //instance name/api/uploads/uploads by url", "name" "request example", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "description" "string in \\"token xxxxxx \\" format " } ], "bodydataparameters" \[ { "kind" "required", "name" "url", "type" "string", "description" "image url " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "8latntjoop8roq8quwd3h", "code" "{\n \\"id\\" 156673,\n \\"url\\" \\"https /test eyrene com/media/12345678 1234 5678 1234 567812345678 jpg\\",\n \\"width\\" 720,\n \\"height\\" 1280,\n \\"created date\\" \\"2016 08 31t10 32 15 687287z\\"\n}", "language" "201", "customlabel" "" } ], "selectedlanguageid" "8latntjoop8roq8quwd3h" }, "examples" { "languages" \[ { "id" "uorcbx6oefdz6loxmndcq", "code" "curl i x post\n https //test eyrene com/api/v1 5/uploads/uploads by url/ \n h ‘authorization token 39fbb6e9 fbf9 459a 9e1b 416dbcf51875e’ \n f \\"url=https /test eyrene com/media/567812345678 jpg\\"", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "uorcbx6oefdz6loxmndcq" }, "description" "post /uploads/uploads by url", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } response parameters ​ https //help inspector cloud com/en/docs/api/backend/methods/v1 5/upload/uploads by url#response definitions id integer image id width integer image width in pixels height integer image height in pixels url url image url created date datetime date and time when the image was uploaded get get uploads/{id} { "tab" "request", "url" "https //instance name/api/v1 5/uploads/{id}", "name" "get cakes", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "id ", "type" "integer", "description" "image id " } ], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "description" "string in \\"token xxxxxx \\" format " } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "smszrwpvhxwuq6eavyrlm", "code" "{\n \\"id\\" 123456789059846,\n \\"url\\" \\"https /test eyrene com/media/12345678 1234 5678 1234 567812345678 jpg\\",\n \\"width\\" 720,\n \\"height\\" 1280,\n \\"created date\\" \\"2016 08 31t10 32 15 687287z\\"\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "smszrwpvhxwuq6eavyrlm" }, "examples" { "languages" \[ { "id" "l4miuiyhzkto5lpfhrjfn", "code" "curl –i –x get\n https //test eyrene com/api/v1 5/uploads/123456789059846 \n h ‘authorization token 39fbb6e9 fbf9 459a 9e1b 416dbcf51875e’", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "l4miuiyhzkto5lpfhrjfn" }, "description" "get a cake by its id", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } } response parameters ​ https //help inspector cloud com/en/docs/api/backend/methods/v1 5/upload/uploads id#response definitions id integer image id width integer image width in pixels height integer image height in pixels url url image url created date datetime date and time when the image was uploaded