Visit godoc for documentation
go get github.com/fossapps/pushy
Usage:
package main
import (
"github.com/fossapps/pushy"
"log"
"time"
)
func main() {
sdk := pushy.Create("API_TOKEN", pushy.GetDefaultAPIEndpoint())
sdk.SetHTTPClient(pushy.GetDefaultHTTPClient(10 * time.Second))
res, requestErr, networkErr := sdk.DeviceInfo("DEVICE_ID")
if networkErr != nil {
log.Println(networkErr)
}
if requestErr != nil {
log.Println(requestErr)
}
log.Println(res)
}