接口域名
https://openapi.yihuichuang.com
Content-Type
- application/json
字符集编码
- UTF-8
请求方法
- POST
请求头
- Content-Type: application/json
- Yhc-Appkey:开发者的appkey
- Yhc-Timestamp: 时间戳,单位秒,开发者服务器时间差不超过60秒
- Yhc-Sign:数据签名
请求BODY
这是一个示例,实际参数请以API文档为准:
{
"name":"abc",
"sex":"男",
"age":"18"
}
CURL示例
下面是一个示例,body参数以及Yhc-Appkey、Yhc-Timestamp、Yhc-Sign请以实际参数为准
Content-Type: application/json
Yhc-Appkey: ceshi123456
Yhc-Timestamp: 1691378450
Yhc-Sign: 123456789fasdfasdfas
{"name":"abc","sex":"男","age":"32"}
curl -XPOST -H "Content-Type:application/json" -H "Yhc-Appkey:ceshi123456" -H "Yhc-Timestamp:1691378450" -H "Yhc-Sign:123456789fasdfasdfas" -d '{"name":"abc","sex":"男","age":"32"}' https://openapi.yihuichuang.com
接口整体返回结构
{
"code":1,
"info":"成功",
"data":{
"name":"abc",
"age":"18",
"sex":"男"
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | int | 接口状态码,详见 错误编码说明 |
info | string | 接口状态描述 |
data | object/array/string | 接口返回数据,仅当code值为1时,返回此字段 |