3
Hello, folks, I am involved in a project and need to make a request with Curl to get data from an api. But I’ve never used Curl in php that way. Can help me?
curl -X GET https://jsonodds.com/api/odds/nfl -H "JsonOdds-API-Key: yourapikey"
From what I understand he’s asking for a get with the key to the api, but when I put like this:
'https://jsonodds.com/api/odds?JsonOdds-API-Key=11111111111111
("11111111111111" equals my key)
He of error 401 saying that my access was denied by invalid credentials. Help me, please. Thank you!
Well, that helped me a lot, so thank you!
– Krint