标識解析(info)

## 接口名稱 标識解析接口 ## 接口描述 查詢解析标識內(nèi)容,返回标識內(nèi)容的JSON數(shù)據。 ## 接口地址 https://idr.gdsinsing.com/v2/info?id={标識碼}&index={索引号(可(kě)選)}&label={label項(可(kě)選)}&key={key(可(kě)選)}&mode={mode(可(kě)選)} ## 調用方式 |方法|數(shù)據類型| |-|-| |[X] GET|[ ] form-data| |[ ] POST|[X] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 參數(shù)說明(míng) |參數(shù)名|位置|數(shù)據類型|必填|說明(míng)| |-|-|-|-|-| |id|Params|String|是|标識碼| |key|Params|String|否|key項| |index|Params|String|否|索引号| |label|Params|String|否|label項| |mode|Params|String|否|返回的數(shù)據格式(json,handle),默認為(wèi)json格式| ## 返回結果 #### 成功返回(mode為(wèi)handle時(shí)) ```json { "handle": "88.168.88/test-idr-handle", "values": [{ "index": 21, "type": "TEXT", "data": { "format": "string", "value": "{\"pindex\":0,\"key\":\"eb17c131cbf74783a62d950eda570636\",\"cipher\":0,\"label\":\"test1\",\"value\":\"test1-value\",\"display\":\"test1-value\"}" }, "ttl": "86400", "ttlType": "", "references": [], "adminRead": 1, "adminWrite": 1, "publicRead": 1, "publicWrite": 1 }, { "index": 22, "type": "TEXT", "data": { "format": "string", "value": "{\"pindex\":0,\"key\":\"f4a102efbdbd4f02a7daf66395420e7b\",\"cipher\":0,\"label\":\"test2\",\"value\":\"test2-value\",\"display\":\"test2-value\"}" }, "ttl": "86400", "ttlType": "", "references": [], "adminRead": 1, "adminWrite": 1, "publicRead": 1, "publicWrite": 1 }, { "index": 23, "type": "TEXT", "data": { "format": "string", "value": "{\"pindex\":0,\"key\":\"0f0a32cc37ab4d79abeb95af2e692707\",\"cipher\":0,\"label\":\"test3\",\"value\":\"test3-value\",\"display\":\"test3-value\"}" }, "ttl": "86400", "ttlType": "", "references": [], "adminRead": 1, "adminWrite": 1, "publicRead": 1, "publicWrite": 1 } ] } ``` #### 成功返回(mode為(wèi)json時(shí)) ```json { "handle": "88.168.88/test-idr-handle", "values": [{ "index": 21, "type": "TEXT", "key": "eb17c131cbf74783a62d950eda570636", "pindex": 0, "label": "test1", "value": "test1-value" }, { "index": 22, "type": "TEXT", "key": "f4a102efbdbd4f02a7daf66395420e7b", "pindex": 0, "label": "test2", "value": "test2-value" }, { "index": 23, "type": "TEXT", "key": "0f0a32cc37ab4d79abeb95af2e692707", "pindex": 0, "label": "test3", "value": "test3-value" } ] } ``` #### 失敗返回 ```json { "result": 0, "msg": "标識碼不存在" } ``` ## 調用例子 ``` JavaScript var settings = { "url": "https://idr.gdsinsing.com/info?id=88.168.89/test/demo-001&label=聯系地址", "method": "GET", "timeout": 0, }; $.ajax(settings).done(function (response) { console.log(response); }); ```