gpushover: Go wrapper for the Pushover API. https://github.com/johnsonjh/gpushover/

Jeff Johnson 22689ad02c Appease linters, additional code comments, etc. 3 лет назад
.gitlab-ci.yml 5bf864d960 CI: Enable CI/CD for Windows, macOS, Linux targets 3 лет назад
LICENSE 9c9b6ebff2 multi: Binary license, attributions, reformatting. 3 лет назад
README.md c93c99dceb Minor formatting 3 лет назад
SECURITY.md 2a2d9d6130 Adjust code example formatting. 3 лет назад
go.mod 28e8a89add Appease linters, additional code comments, etc. 3 лет назад
go.sum 28e8a89add Appease linters, additional code comments, etc. 3 лет назад
gpushover.go 28e8a89add Appease linters, additional code comments, etc. 3 лет назад
gpushover_license_test.go 9c9b6ebff2 multi: Binary license, attributions, reformatting. 3 лет назад
renovate.json f030d8561e Restyled by prettier-json 3 лет назад

README.md

gpushover

Go wrapper for the Pushover API.

License FOSSAStatus GoVersion PkgGoDev GoReportCard GitHubRelease LocCount GitHubCodeSize CodacyBadge LgtmAlerts CodeBeatadge CodeclimateMaintainability TickgitTODOs DeepSource


Availability

Go Modules

Source Code

Issue Tracking

Security Policy

Original Authors

License

Usage Example

package main

import (
    gp "go.gridfinity.dev/gpushover"
    "fmt"
    "time"
)

func main() {
    p := gp.Pushover{
        "......",  /* User key */
        "......",  /* Application key */
    }

    n := gp.Notification {
        Title:     "gpushover",
        Message:   "Hello from gpushover!",
        Timestamp: time.Now(),
        Priority:  2,
        Retry:     30,
        Expire:    90,
    }

    response, err := p.Notify(
                              n,
                             )

    if err != nil {
        if err != gp.PushoverError {
                                     panic(
                                           err,
                                          )
        } else {
            fmt.Println(
                        err,
                       )
            fmt.Println(
                        response,
                       )
        }
    }
}