Skip to content

swensonhe/zeropush

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zeropush

GoDoc Build Status

Go client for the ZeroPush API.

I wrote a Go client for zeropush since I needed it in a project. I know they are improving their REST API so the client needs more brushing.

I used Gomega and Ginkgo as the BDD framework.

USAGE

Example usage:

First, set your API tokens as environment variables:

ZEROPUSH_DEV_TOKEN = your_dev_token
ZEROPUSH_PROD_TOKEN = your_prod_token
//Initialize the client
zeropushClient := zeropush.NewClient()
//send the notification
_, _ = zeropushClient.Notify("@somebody started following you", "1",  "Tock.tiff", `{"key1" : "value1", "key2", "value2"}`, "", "", "LikeNotification", "your_device_token")

TODO

Better GoDoc

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%