接口地址:http://open.liupai.net/unitconvert/convert
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/unitconvert/convert?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| from | string | 是 | 要换算的单位 |
| to | string | 是 | 换算后的单位 |
| amount | int | 是 | 数量 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| from | string | 要换算的单位 |
| to | string | 换算后的单位 |
| fromename | string | 要换算的单位英文名 |
| toename | string | 换算后的单位英文名 |
| fromsymbol | string | 要换算的单位符号 |
| tosymbol | string | 换算后的单位符号 |
| rate | string | 换算比例 |
| camount | string | 换算后的额度 |
接口地址:http://open.liupai.net/unitconvert/single
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/unitconvert/single?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| unit | string | 是 | 单位 |
| amount | int | 是 | 数量 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| unit | string | 单位 |
| ename | string | 英文名 |
| symbol | string | 符号 |
| amount | int | 数量 |
| rate | string | 比例 |
| camount | string | 换算后的额度 |
接口地址:http://open.liupai.net/unitconvert/unit
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/unitconvert/unit?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 暂无参数 | |||
| 参数名称 | 类型 | 说明 |
|---|---|---|
| ename | string | 英文名 |
| symbol | string | 符号 |
| ratio | string | 比率 |
| alias | string | 别名 |
| isSI | string | 是否是国际单位 |