当前位置:   article > 正文

通过API获取节假日_获取节日信息的api

获取节日信息的api

调用一个时间节假日信息:http://www.easybots.cn/api/holiday.php?m=202001

返回结果:{"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"1","27":"1","28":"1","29":"1","30":"1","31":"1"}}

{"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"1","27":"1","28":"1","29":"1","30":"1","31":"1"}}

调用多个时间节假日信息:http://www.easybots.cn/api/holiday.php?m=202001,202002

返回结果:{"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"1","27":"1","28":"1","29":"1","30":"1","31":"1"},"202002":{"01":"1","02":"1","08":"1","09":"1","15":"1","16":"1","22":"1","23":"1","29":"1"}}

{"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"1","27":"1","28":"1","29":"1","30":"1","31":"1"},"202002":{"01":"1","02":"1","08":"1","09":"1","15":"1","16":"1","22":"1","23":"1","29":"1"}}

返回结果说明:

{"年月":{"日期":"日期类型","日期":"日期类型"}}

日期类型:工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/408300
推荐阅读
相关标签
  

闽ICP备14008679号