Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
engine:7.3:api [2015/05/06 17:28]
alamy [GetImageById - MODIFY version]
engine:7.3:api [2018/02/01 18:15] (current)
Line 475: Line 475:
    
 \\  \\ 
-**For information concerning pre-computed DNA's, please contact ​LTU support.**+**For information concerning pre-computed DNA's, please contact ​JASTEC France ​support.**
 \\  \\ 
 \\  \\ 
Line 896: Line 896:
  
  
-==== GetImageById - QUERY version ==== 
-Returns the image that has the given unique id.  
- 
-  * **Request type :​**''​GET''​ 
-  * **Required Parameters :** 
-    * application_key (string): the unique key of the application to query 
-    * image_id (string): The unique identifier of the image. 
-  * **Response**:​ 
-    * status (object): 
-      * message (string): comprehensive message regarding the status of your query 
-      * code (integer): a specific status code, 0 means success 
-    * image (object): 
-      * keywords (list of string): the keywords linked to the image 
-      * score (float): the confidence matching score - smaller is better 
-      * id (string): image_id with which the image has been added to your reference database 
-      * result_info (string): give more information about the result 
-  ​ 
- 
-Simple example, curl: 
-\\  
-**CURL query** 
-<sxh php; title: Sample query> 
-curl -sL  
-'​http://​hostaddress:​8080/​api/​v2.0/​ltuquery/​json/​GetImageById?​application_key=PXly9fRUfUt0oizKTcmpzFS8AAtqrTgI&​image_id=pinpin'​ 
-</​sxh>​ 
- 
-\\  
-**JSON response** 
- 
-<sxh jscript; title: Sample result> 
-{ 
-  "​status":​ { 
-    "​message":​ "No error",​ 
-    "​code":​ 0 
-  }, 
-  "​image":​ { 
-    "​keywords":​ ["​keyword"​],​ 
-    "​score":​ 0, 
-    "​id":​ "​COSMOS00145488_000001.jpg",​ 
-    "​result_info":​ ""​ 
-  } 
-} 
-</​sxh>​ 
  
 ==== GetImageById - MODIFY version ==== ==== GetImageById - MODIFY version ====