Skip to content

fossapps/pushy

Repository files navigation

Pushy.me strongly typed SDK for golang

Go Report CardBuild Statuscodecov

Visit godoc for documentation

Installation

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)
}

Releases

No releases published

Packages

No packages published

Languages