接口地址:https://api.xiaochetongxue.cn/api/iciba.php
返回格式:json/image
请求方式:get
请求示例:https://api.xiaochetongxue.cn/api/iciba.php?format=json
请求备注:暂无备注内容
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| format | 否 | string | 选择输出格式[json|jpg] |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | string | 返回的状态码 |
| msg | string | 返回的错误信息 |
| time | string | 返回今日时间 |
| note | string | 返回每日一句 |
| content | string | 每日一句英语 |
| tts | string | 语音 |
| fenxiang_img | string | 每日图片 |
| img_url | string | 每日图片 |
请求返回示例:
{
"code": 200,
"msg": "success",
"time": "2022-10-30",
"note": "真正的大师往往专注于打磨一件事。",
"content": "True masters tend to focus on one thing and do it well.",
"tts": "https://staticedu-wps.cache.iciba.com/audio/0d6bd6cd1c78997c75c42c81de51e950.mp3",
"fenxiang_img": "https://staticedu-wps.cache.iciba.com/image/165e9b4a2e39406368ea1901728fbb5f.png",
"imgurl": "https://staticedu-wps.cache.iciba.com/image/a99638c0a2bb441949698185d6297845.jpg"
}
服务级错误码参照:
| 错误码 | 说明 |
|---|---|
| 201 | 无 |
| 202 | 无 |
| 203 | 无 |
实例演示代码:
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...