NBA新闻

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

## NBA新闻 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/4e/fe/4efe24089f968bdd18a5a6c42e30d8c9_200x200.png) >美国职业篮篮球赛新闻资讯,NBA明星动态等。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/nba ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | 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->newsNba() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-03-20 10:23", "title":"守住榜首!勇士力克森林狼唐斯双20库里36分汤神28分", "description":"NBA新闻", "picUrl":"http://d.ifengimg.com/w163_h114/e0.ifengimg.com/09/2019/0320/752567313088647BE49FBFBE84DDBC18485D2264_size494_w766_h526.png", "url":"http://sports.ifeng.com/a/20190320/60560295_0.shtml" }, { "ctime":"2019-03-20 09:57", "title":"伟大时刻!哈登正式30通杀29队3纪录仅次于横扫联盟的詹皇", "description":"NBA新闻", "picUrl":"http://d.ifengimg.com/w163_h114/e0.ifengimg.com/03/2019/0320/3DA77775CDF072F5748A2D03CA820E5B25C805B2_size88_w1280_h909.jpeg", "url":"http://sports.ifeng.com/a/20190320/60560217_0.shtml" }, { "ctime":"2019-03-20 06:13", "title":"诺天王超张伯伦的“人造奇迹”:从强行扶植到倔强成长", "description":"NBA新闻", "picUrl":"http://d.ifengimg.com/w163_h114/e0.ifengimg.com/10/2019/0320/570A093AB025D3C1969222D967D5741FDD734DDB_size35_w600_h400.jpeg", "url":"http://sports.ifeng.com/a/20190320/60559998_0.shtml" } ] } ~~~
';