公共请求参数
测试域名:plus-api.3dk.com/api/v4
appid,appkey找客户经理获取。 测试地址无需加白名单。 正式地址需要联系客户经理添加服务器白名单。
请求头
| key | 必填 | 类型 | 默认 | 描述 |
|---|---|---|---|---|
| content-type | 是 | string | application/json; charset=utf-8 | 固定json类型 |
| auth | 是 | string | appid,appkey | appid,appkey用半角逗号隔开。 |
返回
| key | 必填 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| code | 是 | int | 200 | 正常返回200 |
| data | 是 | object | null | 返回数据 |
| err | 否 | string | '' | 如果code不为200,返回错误描述 |
示例
{
code:200,
data:{
},
err:''
}
返回code200为正确,并且包含data内容。 如果code非200,为错误,并且包含err字符串错误描述。
错误代码
| code | 错误类型 | 描述 |
|---|---|---|
| 500 | 鉴权 | appid,appkey错误 |
三方回调
我方主动请求三方服务器获取数据 同时也会附带appid,appkey,如需鉴权,可以比对appid,appkey
请求头
| key | 必填 | 类型 | 默认 | 描述 |
|---|---|---|---|---|
| content-type | 是 | string | application/json; charset=utf-8 | 固定json类型 |
| auth | 是 | string | appid,appkey | appid,appkey用半角逗号隔开。 |
{
cmd:"user.bl",
data:{
uid:"aabb",
ctype:"货币类型"
}
}
返回值
{
code:200,
data: { },
err:null
}
返回code200为正确,并且包含data内容。 如果code非200,为错误,并且包含err字符串错误描述。
错误代码
| code | 错误类型 | 描述 |
|---|---|---|
| 500 | 鉴权 | appid,appkey错误 |