垃圾分类新闻
最后更新于:2022-04-02 08:20:15
## 垃圾分类新闻
>[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/6c/7d/6c7d5b1349824e2c6585c3646a745a85_204x128.png)
> 垃圾分类新闻资讯接口
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/news/rubbish
```
### 请求参数
| 名称 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| 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->newsRubbish()
->withNum(10)
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": [
{
"ctime":"2020-06-15 11:46",
"title":"拟实行处理收费制度!天津市人大常委会决定这份有关生活垃圾的管理条例草案征求意见",
"description":"垃圾分类新闻",
"picUrl":"http://n.sinaimg.cn/tj/266/w640h426/20200120/e49b-inhcycc6183487.png",
"url":"http://tj.sina.com.cn/news/m/2020-06-15/detail-iircuyvi8546599.shtml"
},
{
"ctime":"2020-06-15 11:51",
"title":"新版《内蒙古自治区重污染天气应急预案》强化治理措施护航百姓健康",
"description":"垃圾分类新闻",
"picUrl":"http://n.sinaimg.cn/sinakd2020615s/78/w550h328/20200615/47d6-iuzasxs4031169.jpg",
"url":"https://k.sina.com.cn/article_6456450127_180d59c4f020012e8g.html?from=news&subch=onews"
},
{
"ctime":"2020-06-15 12:05",
"title":"(经济)河北规定餐饮企业不得随意处理餐厨废弃物",
"description":"垃圾分类新闻",
"picUrl":"http://n.sinaimg.cn/default/feedbackpics/transform/116/w550h366/20180418/TYE6-fzihnep5214877.png",
"url":"https://k.sina.com.cn/article_213815211_0cbe8fab02000xx4w.html?from=news&subch=onews"
}
]
}
~~~
';