Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access response headers for transactional API calls #36

Open
benzkji opened this issue Nov 22, 2016 · 0 comments
Open

access response headers for transactional API calls #36

benzkji opened this issue Nov 22, 2016 · 0 comments

Comments

@benzkji
Copy link

benzkji commented Nov 22, 2016

I use createsend-python like this:

transactional = Transactional({"api_key": conf.CAMPAIGN_MONITOR_API_KEY, })
response = transactional.classic_email_send(object.title, '[email protected]', 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant