Live Golf Data

FREEMIUM
Verified
Par slashgolf | Mise à jour 23 days ago | Sports
Popularité

9.9 / 10

Latence

62ms

Niveau de service

100%

Health Check

100%

Retour à toutes les discussions

Strangeness while hitting with linux curl

Rapid account: Fglbandit
fglbandit
2 months ago

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 months ago

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 months ago

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>’

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires