Live Golf Data

ÜCRETSİZ PREMIUM
Verified
Taraf slashgolf | Güncelleyen 23 दिन पहले | Sports
Popülerlik

9.9 / 10

Gecikme

62ms

Hizmet Düzeyi

100%

Health Check

100%

Tüm Tartışmalara Dön

Strangeness while hitting with linux curl

Rapid account: Fglbandit
fglbandit
2 महीने पहले

running on linux using the curl command

curl --header “X-RapidAPI-Key: {key}” --header “X-RapidAPI-Host: live-golf-data.p.rapidapi.com” -X GET https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&year=2024&tournId=014

response {‘error’: ‘request is missing parameter: year’}

I’m confused because I’m clearly sending the year as a query parameter.

Does anyone know if there are any additional header fields required?

Thanks

Rapid account: Fglbandit
fglbandit Commented 2 महीने पहले

on linux I was missing the quote around the url, so it was treating the & as end of command …

curl --header “X-RapidAPI-Key: {key}” --header “X-RapidAPI-Host: live-golf-data.p.rapidapi.com” -X GET “https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&year=2024&tournId=014” worked.

Thanks for the help!

Rapid account: Slashgolf
slashgolf Commented 2 महीने पहले

Can you try using the curl command below:

curl --request GET
–url ‘https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&tournId=014&year=2024
–header ‘X-RapidAPI-Host: live-golf-data.p.rapidapi.com
–header ‘X-RapidAPI-Key: <ENTER YOUR KEY>’

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun