I am new to programming, and was asked to take over a project where I need to change the current Python code we use to connect to a Ver 1 RESTful API. The company has switched t
you can add HTTP headers to a request
headers = { 'X-ABC-API-ID': 'x-x-x-x-x', 'X-ABC-API-KEY': 'nnnnnnnnnnnnnnnnnnnnnnn', 'X-DE-API-ID': 'x', 'X-DE-API-KEY': 'nnnnnnnnnnnnnnnnnnnnnnnn' } r = requests.get('https://www.somecompany.com/api/v2/groups/', headers=headers)