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
아래에 의견을 추가하고 토론에 참여하세요.
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!
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>’