1 parent
e81273ba14
commit
eb9ced212c
1 file changed
+2
-2
@@ -17,7 +17,7 @@ func (p *PushoverClient) new(token string) {
|
|||||||
p.ApplicationToken = token
|
p.ApplicationToken = token
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PushoverClient) send(to string, message string, priority int32) {
|
func (p *PushoverClient) send(to string, message string, priority string) {
|
||||||
payload := url.Values{
|
payload := url.Values{
|
||||||
"token": {p.ApplicationToken},
|
"token": {p.ApplicationToken},
|
||||||
"user": {to},
|
"user": {to},
|
||||||
@@ -27,7 +27,7 @@ func (p *PushoverClient) send(to string, message string, priority int32) {
|
|||||||
http.PostForm(pushoverURL, payload)
|
http.PostForm(pushoverURL, payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPushoverClient(token string) {
|
func New(token string) *PushoverClient {
|
||||||
out := PushoverClient{}
|
out := PushoverClient{}
|
||||||
out.new(token)
|
out.new(token)
|
||||||
return &out
|
return &out
|
||||||
|
|||||||
Reference in new issue
Block a user