logo

接口案例

本命星盘接口地址:星盘API开发文档 ->
请求参数:
名称 类型 必填 描述
access_token 字符 访问Token【获取测试Token】
svg_type 字符 1普通盘 (默认高级盘)
h_sys 字符 宫位系统 默认k
longitude 字符 经度
latitude 字符 纬度
birthday 字符 生日 时间格式1999-10-17 21:00:00
tz 数字 时区 (中国8)
planets 数组 星体id
planet_xs 数组 小行星id
planet_xs 数组 小行星id
virtual 数组 虚星id
planet_xf 数组 恒星id

请求示例:

<script src="https://images.robustcn.com/public/static/module/common/jquery/jquery-2.2.3.min.js"></script>
var ajax_post={'access_token': '989f888c4283e2cc2d8a5aa4af60932c',
'birthday': '1999-10-17 21:00:00',
'longitude': '121.47',
'latitude': '31.23',
'tz': '8',
'h_sys': 'k',
'planets': ['0','1','2','3','4'],
'planet_xs': ['433'],
'planet_xf': ['Regulus'],
'virtual': ['10'],
'phase': {'0':0.5,'30':0.5}
};
$.ajax({
type: "POST",
url: "http://www.xingpan.vip/astrology/chart/natal",
data: ajax_post,
success: function (result) {
},
error: function (e) {
}
});

<?
$post_url='http://www.xingpan.vip/astrology/chart/natal';
$post_data = array(
"access_token" => "989f888c4283e2cc2d8a5aa4af60932c",
"svg_type" => "-1",
"h_sys" => "K",
"longitude" => "121.47",
"latitude" => "31.23",
"birthday" => "1999-10-17 21:00:00",
"tz" => "8",
"planets" => ['0','1','2','3','4'],
"planet_xs" => ['433'],
"virtual" => ['10'],
"planet_xf" => ['Regulus','Spica']
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,$post_url);
curl_setopt($curl, CURLOPT_TIMEOUT, 60);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data));
$data = curl_exec($curl);
curl_close($curl);
print_r($data);
?>

暂未请求方法

暂未请求方法

import json
import requests
url = 'http://www.xingpan.vip/astrology/chart/natal'
header = {"Content-Type": "application/json;charset=UTF-8"}
datas = {
"access_token": "989f888c4283e2cc2d8a5aa4af60932c",
"birthday": "1994-09-0115:30",
"h_sys": "P",
"latitude": "30.60",
"longitude": "114.30",
"planets":["0","1","2"],
'planet_xs': ['433'],
'planet_xf': ['Regulus'],
'virtual': ['10'],
'phase': {'0':0.5,'30':0.5}
"tz": "8.00",
}
r = requests.post(url,headers=header,data=json.dumps(datas))
print(r.text)

暂未请求方法

PDF运势

0.012877s