Hearthstone

GRATIS
Da omgvamp | Aggiornamento il y a 23 jours | Entertainment
Popolaritร 

9.7 / 10

Latenza

2,275ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

Using python package requests instead of unirest?

Rapid account: Surrh
surrh
il y a 5 ans

Canโ€™t get unirest to install, and am much more comfortable using requests - but canโ€™t figure out the code and keep getting error 401. Anyone have help/advice?

Rapid account: Surrh
surrh Commented il y a 5 ans

Figured it out!


url = 'https://omgvamp-hearthstone-v1.p.rapidapi.com/cards'

headers = {
    "X-RapidAPI-Host": "omgvamp-hearthstone-v1.p.rapidapi.com",
    "X-RapidAPI-Key": "5fae6438d6mshaa0d7ebd4370f4fp143cc0jsnea48f0c12b12"
}


response = requests.get(url, headers = headers)

response```

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti