- 接入指南
- 天浩五术
DS_PP_01_01_001
POST
https://api.h189.cn/thws/output
请求参数
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Body 参数application/json
data
object
必需
mpan
object
请求命盘
info
object
请求信息
示例
{
"data": {
"mpan": {
"name": "某人",
"sex": "1",
"datetype": "1",
"year": "2000",
"month": "1",
"day": "1",
"hour": "1",
"minute": "0",
"suntime": "0",
"prov": "广东省",
"city": "深圳市",
"area": "南山区",
"runyue": "0",
"runfen": "1",
"zishi": "1"
},
"info": {
"out_code": "ds_pp_01_01_001",
"out_opt": {
"title": "浩易宝排盘:",
"lang": "zh-cn",
"type": 0,
"part": ""
}
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.h189.cn/thws/output' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"mpan": {
"name": "某人",
"sex": "1",
"datetype": "1",
"year": "2000",
"month": "1",
"day": "1",
"hour": "1",
"minute": "0",
"suntime": "0",
"prov": "广东省",
"city": "深圳市",
"area": "南山区",
"runyue": "0",
"runfen": "1",
"zishi": "1"
},
"info": {
"out_code": "ds_pp_01_01_001",
"out_opt": {
"title": "浩易宝排盘:",
"lang": "zh-cn",
"type": 0,
"part": ""
}
}
}
}'
返回响应
🟢200成功
application/json
Body
code
integer <int64>
必需
>= 1
msg
string
必需
data
object
必需
info
string
返回信息
示例
{
"code": 1,
"msg": "string",
"data": {
"info": "string"
}
}