每日英语

最后更新于:2022-04-02 08:22:37

## 每日英语 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/48/e7/48e77f130eed38bcb44e9c1801b68c30_200x200.png) > 每日一句美好英语,可选择每天一句或者随机一句,返回英语句子、释义、语音和分享图片。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/english/day ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string|是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | rand | int | 否 | 是否随机 | | date | string | 否 | 指定时间,默认当天 | ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | id | int | 3673 | 数据ID | | content | string | Solitude is the soul’s holiday...... | 句子内容 | | source | string | American drama lines | 来源 | | note | string | 独处是灵魂的假期...... | 释义 | | tts | string | https://edu-wps.ks3-cn-beijing.ksyun.com/audio/3534bca1b7ec29560daa7e1960b9bd62.mp3 | 音频地址 | | imgurl | string | https://edu-wps.ks3-cn-beijing.ksyun.com/image/a356fcff007bd65048e48e92bd6795df.png | 分享图片地址 | | date | string | 2020-02-22 | 时间 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->englishDay() ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "id":3673, "content":"Solitude is the soul’s holiday, an opportunity to stop doing for others and to surprise and delight ourselves instead.", "source":"American drama lines", "note":"独处是灵魂的假期,你可以不为他人奔忙,只为给自己带来惊喜与喜悦。", "tts":"https://edu-wps.ks3-cn-beijing.ksyun.com/audio/3534bca1b7ec29560daa7e1960b9bd62.mp3", "imgurl":"https://edu-wps.ks3-cn-beijing.ksyun.com/image/a356fcff007bd65048e48e92bd6795df.png", "date":"2020-02-22" } ] } ~~~
';