环保资讯

最后更新于:2022-04-02 08:20:17

## 环保资讯 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/27/9c/279c03955027618edc437efbaadf3884_200x200.png) > 人民网环保新闻资讯 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/environmental ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | 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->newsEnvironmental() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2020-01-08 20:42", "title":"内蒙古:10家单位获评“自然学校”", "description":"人民网环保", "picUrl":"http://www.people.com.cn/mediafile/pic/20200107/27/10971122445158632427.jpg", "url":"http://env.people.com.cn/n1/2020/0108/c1010-31539359.html" }, { "ctime":"2020-01-08 20:42", "title":"中国南极考察队完成宇航员海磷虾调查", "description":"人民网环保", "picUrl":"http://www.people.com.cn/mediafile/pic/20200108/16/12989764595465474312.jpg", "url":"http://env.people.com.cn/n1/2020/0108/c1010-31539378.html" }, { "ctime":"2020-01-08 20:42", "title":"水清天蓝产业优,这个滩涂荒地上起步的园区咋做到的", "description":"人民网环保", "picUrl":"http://www.people.com.cn/mediafile/pic/20200108/82/16040496056363457198.jpg", "url":"http://env.people.com.cn/n1/2020/0108/c1010-31539391.html" } ] } ~~~
';