API-FOOTBALL

फ्रीमियम
Verified
द्वारा API-SPORTS | अपडेट किया गया לפני 13 ימים | Sports
लोकप्रियता

10 / 10

लेटेंसी

369ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Error accessing leagues

Rapid account: Dmjoseph 78
dmjoseph78
לפני 5 שנים

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

Rapid account: Api Sports
api-sports Commented לפני 5 שנים

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

Rapid account: Dmjoseph 78
dmjoseph78 Commented לפני 5 שנים

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”
}
)

Rapid account: Api Sports
api-sports Commented לפני 5 שנים

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.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें