Trying to hit an api which returns a json. Documentation says to hit it in this fashion:
curl --user username:password "https://api.company.com/dummyapi.json"
Works like a champ from the command line and in PHP. I'm new to Python. How do I do mimic this in Python? I've tried requests and subprocess.call but I keep getting a bad request response from the server saying that credentials were not provided.