Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Postmark CPAN distribution.

Report information
The Basics
Id: 84512
Status: resolved
Priority: 0/
Queue: WWW-Postmark

People
Owner: Nobody in particular
Requestors: lxp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.4
Fixed in: (no value)



Subject: return further details on successful send
When Postmark successfully sends mail it returns a JSON structure with further details, as documented here: http://developer.postmarkapp.com/developer-build.html#success-response It would be nice if WWW::Postmark->send() could return these details, as it would enable calling code to e.g. log the sent message ID. Since the WWW-Postmark distribution already requires JSON support, the code could simply return a hash reference of the JSON response. This change would be backwards-compatible since "a true value" is still returned as per the documentation.
On Tue Apr 09 09:43:15 2013, LXP wrote: Show quoted text
> When Postmark successfully sends mail it returns a JSON structure with > further details, as documented here: > > http://developer.postmarkapp.com/developer-build.html#success-response > > It would be nice if WWW::Postmark->send() could return these details, > as it would enable calling code to e.g. log the sent message ID. > > Since the WWW-Postmark distribution already requires JSON support, the > code could simply return a hash reference of the JSON response. > This change would be backwards-compatible since "a true value" is > still returned as per the documentation.
I have implemented this functionality and submitted a pull request on GitHub: https://github.com/ido50/WWW-Postmark/pull/2
Thanks, integrated in v0.5