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

Provide Beans for JSON Response from Relay Webhooks #62

Open
jonturgeon opened this issue Apr 21, 2017 · 10 comments
Open

Provide Beans for JSON Response from Relay Webhooks #62

jonturgeon opened this issue Apr 21, 2017 · 10 comments
Assignees

Comments

@jonturgeon
Copy link

Would be nice to have a set of POJO's that could be used with GSON for decoding the JSON Relay Webhook response.

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

It is a good idea and I am happy to create the POJO's

I assume the user of the POJO's would have the responsibility to run their own HTTP server and instantiate the proper Event class for deserialization?

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

I have a couple of generators that maybe easily adapted to be able to create the POJO's for the Webhook events. They are:

It might be pretty easy to adapt those to generate at least the initial Webhook POJOs

@jonturgeon
Copy link
Author

jonturgeon commented Apr 21, 2017 via email

@jonturgeon
Copy link
Author

jonturgeon commented Apr 21, 2017 via email

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

yes, I totally agree with you. It will be nice to have those directly in the SparkPost Library. My comments above are really more about can I do something to help me generate code on other projects I need to do at the same time as I get this implemented in the Java library.

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

I should also note I gladly welcome Pull Requests if this is something you want to take on.

@jonturgeon
Copy link
Author

jonturgeon commented Apr 21, 2017 via email

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

I guess I had better meet you on your Yacht so we can pair program it then ;)

Kidding aside, I would be glad to look at what you have. I will work on adding Webhook events as a first class citizen to the library as you suggested.

@jonturgeon
Copy link
Author

jonturgeon commented Apr 21, 2017 via email

@yepher
Copy link
Collaborator

yepher commented Apr 21, 2017

I've created a branch with the initial pass at creating webhook events here

Still need to test them to see if they work.

@yepher yepher self-assigned this Apr 24, 2017
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