汉服新闻
最后更新于:2022-04-02 08:20:41
## 汉服新闻
>[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/b1/82/b18295b34399c405cd873783c7f7e103_304x200.png)
> 民族文化汉服新闻资讯
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/news/hanfu
```
### 请求参数
| 名称 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| 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->newsHanfu()
->withNum(10)
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": [
{
"ctime":"2019-07-31 21:51",
"title":"中日对译|日本举办了一场介绍“中日古装文化”的时装秀",
"description":"爱汉服",
"picUrl":"http://static.aihanfu.net/uploadfile/2019/0726/thumb_230_130_20190726082955202.png",
"url":"http://www.aihanfu.com/wen/7223/"
},
{
"ctime":"2019-07-31 21:51",
"title":"“长安十二时辰”永乐宫神仙图”现身沪上汉服走秀",
"description":"爱汉服",
"picUrl":"http://static.aihanfu.net/uploadfile/2019/0728/thumb_230_130_20190728075221666.png",
"url":"http://www.aihanfu.com/wen/7231/"
},
{
"ctime":"2019-07-31 21:51",
"title":"汉服怎么火了?中国青年报:汉服热袭来!",
"description":"爱汉服",
"picUrl":"http://static.aihanfu.net/uploadfile/2019/0731/thumb_230_130_20190731071416424.jpeg",
"url":"http://www.aihanfu.com/wen/7244/"
}
]
}
~~~
';