稳定、快速、免费的 API 接口服务
假期余额、下一个假期、请假攻略
接口地址: https://api.oioweb.cn/api/common/getNextHolidayInfo
返回格式: JSON
请求方式: GET
请求示例: https://api.oioweb.cn/api/common/getNextHolidayInfo
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
holiday | string | 日期 |
enName | string | 英文名 |
name | string | 中文名 |
year | number | 年 |
start | string | 开始时间 |
返回示例:
{"code":200,"result":[{"holiday":"2024-01-01","enName":"New Year","name":"元旦","year":2024,"start":"2023-12-30","end":"2024-01-01","occupied":[]},{"holiday":"2024-02-10","enName":"Spring Festival","name":"春节","year":2024,"start":"2024-02-10","end":"2024-02-17","occupied":["2024-02-04","2024-02-18"]},{"holiday":"2024-04-04","enName":"Qingming Festival","name":"清明节","year":2024,"start":"2024-04-04","end":"2024-04-06","occupied":["2024-04-07"]},{"holiday":"2024-05-01","enName":"Labour Day","name":"劳动节","year":2024,"start":"2024-05-01","end":"2024-05-05","occupied":["2024-04-28","2024-05-11"]},{"holiday":"2024-06-10","enName":"Dragon Boat Festival","name":"端午节","year":2024,"start":"2024-06-08","end":"2024-06-10","occupied":[]},{"holiday":"2024-09-17","enName":"Mid-Autumn Festival","name":"中秋节","year":2024,"start":"2024-09-15","end":"2024-09-17","occupied":["2024-09-14"]},{"holiday":"2024-10-01","enName":"National Day","name":"国庆节","year":2024,"start":"2024-10-01","end":"2024-10-07","occupied":["2024-09-29","2024-10-12"]},{"holiday":"2025-01-01","enName":"New Year","name":"元旦","year":2025},{"holiday":"2025-01-29","enName":"Spring Festival","name":"春节","year":2025}],"msg":"success"}
错误码格式说明:
名称 | 说明 |
---|---|
200 | 成功 |
400 | 输入参数错误导致失败 |
500 | 服务器端出错导致失败 |
代码示例:
暂无示例,有问题或者不懂请加站长交流群:611987360 获取调用方法。