Releases: arcanericky/pushover
Releases · arcanericky/pushover
v1.0.7
v1.0.6
Enable the callback option in the command-line interface to support the callback option in the API with the --callback flag. There are no checks against the format of the callback argument. It's simply passed to the API and then to Pushover. The callback is optional and only used by Pushover when the --priority option is set to 2.
v1.0.5
v1.0.4
- Build using Go 1.13.6.
- Add OS, architecture, and Go version to output when using the
--versionflag. - Improve errors by using types and implementing the error interface. Errors can now be checked using type assertions. See the tests for more usage examples.
if r, e = pushover.Message(pushover.MessageRequest{Token: os.Args[1], User: os.Args[2], Message: os.Args[3]}); e != nil {
if _, ok := e.(*pushover.ErrInvalidRequest); ok {
fmt.Println("request was invalid")
}
switch e.(type) {
case *pushover.ErrInvalidRequest:
fmt.Println("request was invalid")
case *pushover.ErrInvalidResponse:
fmt.Println("response was invalid")
default:
fmt.Println("other error")
}
}
v1.0.3
Build with Go 1.13.1
1.0.2
Enable Emergency Priority Messages
These messages are enabled by setting priority to 2, then specifying the retry and expire parameters. See the Pushover API documentation for priority for more details.
- Add the
RetryandExpireparameters to the Message API request, and theReceiptparameter to the Message API response. - Add the
--retryand--expireoptions to the utility.
1.0.1
- Handle response fields more gracefully
- Add context support
1.0.0
Initial release of package and utility.