Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuchan/mpush
https://github.com/yuchan/mpush
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuchan/mpush
- Owner: yuchan
- Created: 2015-08-29T14:19:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T01:14:47.000Z (over 9 years ago)
- Last Synced: 2024-11-09T13:40:35.404Z (about 2 months ago)
- Language: Go
- Size: 2.95 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mpush
Push Notification Server written by [Go](https://golang.org).## Prerequisite
- prepare cert.pem, and key.pem along with [this guide](http://stackoverflow.com/a/21253261)## Usage
**move to the directory where cert.pem and key.pem exist.**
- download [binary](https://github.com/yuchan/mpush/releases)
- execute mpush binary (e.g. ./mpush)you should install API client, like [Postman](https://www.getpostman.com), [CocoaRestClient](http://mmattozzi.github.io/cocoa-rest-client/).
**on client**
you can create request like this.
![ClientImage](https://dl.dropboxusercontent.com/u/1655900/Screenshots/Screenshot%202015-08-29%2023.50.53.png)
## API Spec
### parameterskey | value | required
------ | :----------------------------------------: | -------:
token | comma separated token list | **yes**
body | message body | **yes**
badge | badge number (default: 0) | no
sound | sound file name | no
custom | **json formatted** text for custom payload | no## Contribution
### prepare```
$ go get github.com/tools/godep
$ godep restore
```Before you send pull request, I'd like you to type "go fmt *.go". :3