游戏资讯
最后更新于:2022-04-02 08:20:48
## 游戏资讯
>[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/fa/bb/fabbbc65a6ba0f5a3d5ae2f749f2f228_200x200.png)
> 游戏资讯接口,游戏动态、游戏开服消息、游戏教程、游戏技巧等。
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/news/game
```
### 请求参数
| 名称 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| 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->newsGame()
->withNum(10)
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": [
{
"ctime":"2019-03-20 10:02",
"title":"《Apex英雄》新英雄公布放一个跳板飞跃远方",
"description":"游戏资讯",
"picUrl":"https://img0.utuku.china.com/650x0/game/20190320/a5374392-0224-4db1-bb8b-62233e58d3ab.jpg",
"url":"https://game.china.com/pcgame/news/444/20190320/35469644.html"
},
{
"ctime":"2019-03-20 10:00",
"title":"超强任天堂粉纯手工打造超大屏Switch游戏机",
"description":"游戏资讯",
"picUrl":"https://img3.utuku.china.com/588x0/game/20190320/8ad97975-2b3d-4421-b10b-af78744b22c6.jpg",
"url":"https://game.china.com/pcgame/news/444/20190320/35469612.html"
},
{
"ctime":"2019-03-20 09:20",
"title":"数据干货2019美国手游市场“变革”洞察",
"description":"游戏资讯",
"picUrl":"https://img0.utuku.china.com/344x0/game/20190320/5ffd61de-69c2-4629-b034-d173ecf582a4.jpg",
"url":"https://game.china.com/industry/news/11011446/20190320/35468443.html"
}
]
}
~~~
';