IT资讯

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

## IT资讯 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/61/c0/61c0b77c0bb75709b9c0dbbe4521c22a_200x200.png) > IT行业新闻、舆论、热点、行业动态新闻资讯等。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/it ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | 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->newsIt() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-03-20 07:02", "title":"不复往昔荣光?前雇员称苹果零售店现在太追求销", "description":"网易IT", "picUrl":"http://cms-bucket.ws.126.net/2019/03/19/8fd36e2dff4248388320db8faa8ccc00.png?imageView&thumbnail=200y140", "url":"http://tech.163.com/19/0320/07/EAMNELR200097U7T.html" }, { "ctime":"2019-03-19 22:30", "title":"任正非外媒采访实录:美国让华为成为舆论中心", "description":"网易IT", "picUrl":"http://cms-bucket.ws.126.net/2019/03/19/84122123487140198d7c452d61bad228.png?imageView&thumbnail=200y140", "url":"http://tech.163.com/19/0319/22/EALQ61S700097U7T.html" }, { "ctime":"2019-03-19 20:52", "title":"小米CFO周受资:3月底保证小米9系列150万台供应", "description":"网易IT", "picUrl":"http://cms-bucket.ws.126.net/2019/03/19/40aa8b3346a44dc4b90b765a6218da10.png?imageView&thumbnail=200y140", "url":"http://tech.163.com/19/0319/20/EALKHH4S00097U7T.html" } ] } ~~~
';