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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입