import com.baidubce.http.ApiExplorerClient; import com.baidubce.http.AppSigner; import com.baidubce.http.HttpMethodName; import com.baidubce.model.ApiExplorerRequest; import com.baidubce.model.ApiExplorerResponse; // 八字排盘 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "http://gwgp-gjjifhqt3mv.n.bdcloudapi.com/bazi/paipan"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.GET, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); request.addQueryParameter("name", ""); request.addQueryParameter("city", ""); request.addQueryParameter("year", ""); request.addQueryParameter("month", ""); request.addQueryParameter("day", ""); request.addQueryParameter("hour", ""); request.addQueryParameter("minute", ""); request.addQueryParameter("sex", ""); request.addQueryParameter("islunar", ""); request.addQueryParameter("istaiyang", ""); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
{
"status": 0,
"msg": "ok",
"result": {
"year": "2009",
"month": "10",
"day": "18",
"hour": "02",
"minute": "05",
"name": "",
"city": "",
"istaiyang": "0",
"lunaryear": "2009",
"lunarmonth": "九月",
"lunarday": "初一",
"lunarhour": "丑时",
"animal": "牛",
"yearganzhi": "己丑",
"jieqiprev": {
"jieqiname": "寒露",
"date": "2009-10-08 11:40:03"
},
"jieqinext": {
"jieqiname": "立冬",
"date": "2009-11-07 14:56:15"
},
"bazi": [
"己丑",
"甲戌",
"丙申",
"己丑"
],
"taiyuan": "乙丑",
"minggong": "庚午",
"xunkong": [
"午未",
"申酉",
"辰巳",
"午未"
],
"qiyun": {
"year": "3",
"month": "2",
"day": "12",
"hour": "2"
},
"jiaoyun": {
"year": "2012",
"month": "12",
"day": "30",
"hour": "04"
},
"qiankunzao": [
[
"伤官",
"偏印",
"日元",
"伤官"
],
[
"己丑",
"甲戌",
"丙申",
"己丑",
"(辰巳空)"
],
[
[
"癸正官",
"辛正财",
"戊食神",
"癸正官"
]
]
],
"nayin": [
"霹雳火",
"山头火",
"山下火",
"霹雳火"
],
"shensha": [
[
"太极贵人",
"华盖",
"国印贵人",
"十恶大败"
],
[
"太极贵人",
"寡宿",
"吊客"
]
],
"dayun": {
"nayin": [
"山头火",
"剑锋金"
],
"shishen": [
"偏印",
"正官"
],
"ganzhi": [
"甲戌",
"癸酉",
"壬申"
],
"sui": [
"1-2岁",
"3岁",
"13岁",
"23岁",
"33岁"
],
"year": [
"2009",
"2012",
"2022",
"2032"
]
},
"liunian": [
[
"己丑",
"壬辰",
"壬寅"
]
]
}
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
根据出生的年月日、时辰、分钟,确定你的生辰八字、坤/乾造、纳音、旬空、行大运时间、流年等信息。