Access VICIdial API via Python

Hey,
Im trying to access the API just using the basic tokens available in the docs here : http://www.vicidial.org/docs/NON-AGENT_API.txt
Im using python 3.8.8 and using this code :
import requests
from requests.auth import HTTPBasicAuth
url = 'http://server/vicidial/non_agent_api.php'
auth =('6666','1234')
requests.get(url,auth=auth)
Im getting the following error :
NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001CC9B5A7FA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
Would anyone be able to tell me where im going wrong?
Thanks
Alex
Im trying to access the API just using the basic tokens available in the docs here : http://www.vicidial.org/docs/NON-AGENT_API.txt
Im using python 3.8.8 and using this code :
import requests
from requests.auth import HTTPBasicAuth
url = 'http://server/vicidial/non_agent_api.php'
auth =('6666','1234')
requests.get(url,auth=auth)
Im getting the following error :
NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001CC9B5A7FA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
Would anyone be able to tell me where im going wrong?
Thanks
Alex