access response headers for transactional API calls
Opened this issue · 0 comments
benzkji commented
I use createsend-python like this:
transactional = Transactional({"api_key": conf.CAMPAIGN_MONITOR_API_KEY, })
response = transactional.classic_email_send(object.title, 'info@sender.com', recipient.email,
conf.CAMPAIGN_MONITOR_API_CLIENT_ID, html=body)
print response[0]
how can I access the X-Rate-Limit headers provided by the response? I can only see the json, transformed into a python object (and list?). As seen here: https://www.campaignmonitor.com/api/getting-started/#rate_limiting