Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def request(self, method, uri, **kwargs):
headers = {
'User-Agent': 'python-sparkpost/' + sparkpost.__version__,
'Content-Type': 'application/json',
'Authorization': self.api_key
}
response = self.transport.request(method, uri, headers=headers,
**kwargs)
return response