Hello everyone, I'm involved in a project and I need to make a request with curl to get data from an api. But I've never used curl in php that way. Can you help me?
curl -X GET https://jsonodds.com/api/odds/nfl -H "JsonOdds-API-Key: yourapikey"
By what I understand he is asking for a get with the api key, but when I put it like this:
'https://jsonodds.com/api/odds?JsonOdds-API-Key=11111111111111
("11111111111111" is equivalent to my key)
It from error 401 saying that my access was denied by invalid credentials. Help me please. Thanks!