engagespot

package module
v0.0.0-...-9f93ab8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Go

engagespot-go

Go SDK for Engagespot

Installation
go get github.com/ssiyad/engagespot-go
Example
package main

import "github.com/ssiyad/engagespot-go"

func main() {
    c := engagespot.NewEngagespotClient("API_KEY", "API_SECRET")

    n, _ := c.NewNotification("Hello world!")
    n.SetMessage("Let's go!")
    n.SetIcon("https://example.com/icon.svg")
    n.SetUrl("https://example.com")
    n.SetCategory("greet")
    n.AddRecipient("hello@example.com")

    n.Send()
}

Documentation

Index

Constants

View Source
const DEVICE_TYPE = "ios"
View Source
const ENDPOINT = "https://api.engagespot.co/v3/"

Variables

This section is empty.

Functions

func NewEngagespotClient

func NewEngagespotClient(apiKey, apiSecret string) *client

NewEngagespotClient can be used to create a client which can then be used to create and send notifications

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL