Live Golf Data

부분 유료
Verified
분류별 slashgolf | 업데이트됨 il y a 23 jours | Sports
인기

9.9 / 10

지연 시간

64ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

Strangeness while hitting with linux curl

Rapid account: Fglbandit
fglbandit
il y a 2 mois

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 il y a 2 mois

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 il y a 2 mois

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입