有空接口说明文档

最后更新: Oct 1,2018

#1331#[公共]查询信息

接口地址

环境 地址

正式环境

https://open.atimer.cn/v1/allinone/query

沙箱环境

https://sandbox.atimer.cn/v1/allinone/query

 

入参规范

名称 类型 必须 描述

Client

Client

系统参数,开发者调用接口客户端信息

Time

datetime

指定查询的时间

 

出参规范

{

       Success: true,

       Error: {

              // 包含 code 和 Description

 },

       Data: {

              // 下表解释

       }

}

名称 类型 描述

ChineseLunar

string

农历

ChineseZodiac

string

干支

Constellation

string

星座

GeneralHoliday

string[]

节假

ChineseConstellation

string

星宿

ChineseSolarTerm

string

节气

 

范例

请求:

{"Time":"2020-01-30T05:45:43.3981928+08:00","Client":{"ClientKey":"WTpnUYbmA00WoTuI","Timestamp":"1580334343","Sign":"c8f1dac6c288900b79924d0b5216119a","UserCode":""}}

响应:

{"Success":true,"Error":null,"Data":{"Time":"2020-01-30T05:45:43.3981928+08:00","ChineseLunar":{"Year":"二零二零年","Month":"正月","Day":"初六","Date":"农历二零二零年正月初六"},"ChineseZodiac":{"Year":"庚子年","Month":"戊寅月","Day":"壬申日","Hour":"癸卯时"},"Constellation":"水瓶座","GeneralHoliday":[],"ChineseConstellation":"奎木狼","ChineseSolarTerm":"","Huangli":{"yangli":"2020-01-30","yinli":"庚子(鼠)年正月初六","wuxing":"剑锋金 危执位","chongsha":"冲虎(丙寅)煞南","baiji":"壬不汲水更难提防 申不安床鬼祟入房","jishen":"除神 福生 阳德 母仓 五富 司命 鸣犬","yi":"塑绘 开光 出行 订盟 纳采 除服 成服 嫁娶 纳婿 入殓 移柩 启钻 安葬 立碑","xiongshen":"游祸 五离","ji":"入宅 安床"}}}

执行耗时 432 毫秒