军事新闻

最后更新于:2022-04-02 08:21:07

## 军事新闻 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/66/6b/666b23c6821bd42b7c07dcbcbd5242bb_200x200.png) >男生较喜欢的军事资讯动态,了解国防建设、世界各国军备武器等内容。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/military ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | 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->newsMilitary() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-03-20 00:00", "title":"房兵点评美军机模拟轰炸俄基地:把欧洲绑死在美国战车上", "description":"军事图集", "picUrl":"https://img1.utuku.china.com/300x0/mili/20190320/b5876c46-4733-49aa-92b9-f03e2faee6ee.jpg", "url":"" }, { "ctime":"2019-03-20 00:00", "title":"应重视与巴基斯坦军事合作!俄专家列举俄从印巴冲突中所得教训", "description":"军事图集", "picUrl":"https://img2.utuku.china.com/300x0/mili/20190320/44461992-409f-421d-a92c-838140018b01.jpg", "url":"" }, { "ctime":"2019-03-20 00:00", "title":"美台合开记者会台当局被批抱大腿营造“挺蔡”假象", "description":"军事图集", "picUrl":"https://img0.utuku.china.com/300x0/mili/20190320/695cee27-8ac1-421e-9b29-4b73972d93f5.jpg", "url":"" } ] } ~~~
';