TheRundown

免费增值
通过 TheRundown | 已更新 5 дней назад | Sports
人气

9.7 / 10

延迟

252ms

服务等级

100%

Health Check

100%

返回所有讨论

Missing field `useQuerystring` in "Node.js - Request" sample code

Rapid account: Zachkirsch
zachkirsch
5 лет назад

The sample code under Node.js - Request is incorrect.

Because there are two queryParams of the same name (“include”), you need to add useQueryString: true to the request options.

var options = {
method: ‘GET’,
url: ‘https://therundown-therundown-v1.p.rapidapi.com/sports/2/events/2019-10-20’,
qs: {include: [‘all_periods’, ‘scores’], offset: ‘0’},
useQuerystring: true, // NEED THIS!!
headers: {
‘x-rapidapi-host’: ‘therundown-therundown-v1.p.rapidapi.com’,
‘x-rapidapi-key’: KEY
},
};

Rapid account: Therundown
therundown Commented 5 лет назад

Hi Zach,

Thanks for letting us know. We’ll forward this to RapidAPI so they can make the correction on their end.

Best,
TheRundown Team

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论