Live Golf Data

FREEMIUM
Verified
(Ким) slashgolf | Оновлено 23 days ago | Sports
Популярність

9.9 / 10

Затримки

62ms

Рівень обслуговування

100%

Health Check

100%

Повернутися до всіх обговорень

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

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення