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

Return message id from v3 send API #23

Closed
philbooth opened this issue Jun 1, 2018 · 3 comments
Closed

Return message id from v3 send API #23

philbooth opened this issue Jun 1, 2018 · 3 comments

Comments

@philbooth
Copy link

I need to access the message id returned by the v3 send API, but couldn't see a way to do it. Am I missing something?

To get something working in the meantime, I ended up making a branch that returns it instead of the response status, getting the value out of the X-Message-Id header. Is there some version of that change that would be worth me tidying up and opening as a PR?

@gsquire
Copy link
Owner

gsquire commented Jun 2, 2018

Thanks for opening this issue. I have debated returning the reqwest::Resposne type and just re-exporting it. This would give the user access to the headers and other parts of the response. Would this suffice? If so, I will make a PR soon.

@philbooth
Copy link
Author

Would this suffice?

Yep, works for me!

@gsquire
Copy link
Owner

gsquire commented Jun 3, 2018

This was updated in version 0.7.0.

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

2 participants