This is the error code I get when accessing leagues. I am trying out the api and so I am on the basic plan and I should be able to access leagues Let me know why I am not authorized. {‘results’: 0, ‘error’: ‘NOT AUTORIZED’}
Hi please remove your X-Mashape-Key from your POST.
I check in my console you have sent wrong call like this : https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues/season
import requests
path ="https://api-football-v1.p.mashape.com/leagues/season/2018" response = requests.get(path, headers={ “X-Mashape-Key”: “mYNOYq4ciRmshMbQgECJUnqmIRhMp1Y2MnzjsnZLU0KGkGgaSO”, “Accept”: “application/json” } )
https://api-football-v1.p.mashape.com/leagues/season/2018
Your method of recovering leagues data is not good. Check your scripts.
Here’s what you send: <code><pre> https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues/season https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leaguesleagues/season </pre></code>
While it will be necessary to do like this: <code><pre> https://api-football-v1.p.mashape.com/leagues/ https://api-football-v1.p.mashape.com/leagues/season/2018 </pre></code>
Hi can you paste the url that are you calling to get this data.
for information, this error is displayed when the token sent by mashape is not the correct one or malformed request.
아래에 의견을 추가하고 토론에 참여하세요.
Hi please remove your X-Mashape-Key from your POST.
I check in my console you have sent wrong call like this : https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues/season
import requests
path ="https://api-football-v1.p.mashape.com/leagues/season/2018"
response = requests.get(path,
headers={
“X-Mashape-Key”: “mYNOYq4ciRmshMbQgECJUnqmIRhMp1Y2MnzjsnZLU0KGkGgaSO”,
“Accept”: “application/json”
}
)
https://api-football-v1.p.mashape.com/leagues/season/2018
Your method of recovering leagues data is not good. Check your scripts.
Here’s what you send:
<code><pre>
https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues
https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leagues/season
https://api-football-v1.p.mashape.com/https:/api-football-v1.p.mashape.com/leaguesleagues/season
</pre></code>
While it will be necessary to do like this:
<code><pre>
https://api-football-v1.p.mashape.com/leagues/
https://api-football-v1.p.mashape.com/leagues/season/2018
</pre></code>
Hi can you paste the url that are you calling to get this data.
for information, this error is displayed when the token sent by mashape is not the correct one or malformed request.