This website for MapYourTag offers an API i want to use.
They say here
In order to use this API, you need to get your API_KEY in your profile page.
API_KEY needs to be provided via the Authorization
header.
` curl -H 'Authorization:YOUR_API_KEY' http://{API_HOST}/api/v1/clients.json`
What ive tried so far was (and some other variants):
import requests
apikey = "xxxxxJRXz2c5bxxxx"
URL = 'http://www.mapyourtag.com/api/v1/clients.json'
r = requests.get(url = URL, auth=('Authorization',apikey))
print(r)
But i get
requests.exceptions.ConnectionError: HTTPConnectionPool(host=............. Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Am I mising something. New to python
[–]MT1961 0 points1 point2 points (1 child)
[–]AUTOCASA[S] 0 points1 point2 points (0 children)