健康知识
最后更新于:2022-04-02 08:21:00
## 健康知识
>[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/70/7e/707ef49da517b1143e5b26c5483769e2_200x200.png)
>健康第一位,了解养生、医学发展,中西医等相关资讯。
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/news/health
```
### 请求参数
| 名称 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) |
| num | int | 是 | 返回数量1-50,默认10 |
| page | int | 否 | 翻页 |
| word | string | 否 | 检索关键词 |
### 返回`data`参数
| 名称 | 类型 | 说明 |
| --- | --- | --- |
| ctime | string | 时间 |
| title | string | 标题 |
| description | string | 描述 |
| picUrl | string | 封面 |
| url | string | 链接 |
## SDK调用
```
$client = new Client("YourAppCode");
$result = $client->newsHealth()
->withNum(10)
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": [
{
"ctime":"2019-03-1917:13",
"title":"医生在列车上救人的风险有多大?",
"description":"网易健康",
"picUrl":"http://imgsize.ph.126.net/?imgurl=http://cms-bucket.ws.126.net/2019/03/20/dae6c19b60cd46b0aa24e6a9a9ef08bd.jpeg_150x100x1x85.jpg",
"url":"http://jiankang.163.com/19/0319/17/EAL854H400388165.html"
},
{
"ctime":"2019-03-1820:46",
"title":"900多家医院入选首批分娩镇痛试点",
"description":"网易健康",
"picUrl":"http://imgsize.ph.126.net/?imgurl=http://cms-bucket.ws.126.net/2019/03/19/e825741b726a42378d9dbba456380d59.jpeg_150x100x1x85.jpg",
"url":"http://jiankang.163.com/19/0318/20/EAJ1TQK800388165.html"
},
{
"ctime":"2019-03-1807:30",
"title":"中国超六成青少年儿童睡眠时间不足8小时",
"description":"网易健康",
"picUrl":"http://imgsize.ph.126.net/?imgurl=http://cms-bucket.ws.126.net/2019/03/18/7e692bb105c9457995f46c0187bf5773.jpeg_150x100x1x85.jpg",
"url":"http://jiankang.163.com/19/0318/09/EAHPSDH100388165.html"
}
]
}
~~~
';