TheRundown

フリーミアム
よって TheRundown | 更新済み il y a 4 jours | Sports
人気

9.7 / 10

レイテンシー

252ms

サービスレベル

100%

Health Check

100%

すべてのディスカッションに戻る

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

Rapid account: Zachkirsch
zachkirsch
il y a 5 ans

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 il y a 5 ans

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

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿