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

Make message payload optional #8

Merged
merged 8 commits into from
May 16, 2016
Merged

Make message payload optional #8

merged 8 commits into from
May 16, 2016

Conversation

rossta
Copy link
Collaborator

@rossta rossta commented May 15, 2016

Looks like the only required parameter for Google/Firefox to push a notification is the endpoint. This pull request extracts a Request class to represent the logic for assembling the net/http request with the optional payload.

I've also provided an additional parameter, :ttl, as a way to change the time-to-live header.

@rossta rossta force-pushed the optional_message branch from 064c74e to 8f93440 Compare May 15, 2016 12:14
@zaru
Copy link
Owner

zaru commented May 16, 2016

This PR is nice work!
I will fix the README to merge.

@zaru zaru merged commit 550af43 into zaru:master May 16, 2016
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

Successfully merging this pull request may close these issues.

2 participants