From eb9ced212c0807b9558fd9a91ede8502625cfbb3 Mon Sep 17 00:00:00 2001 From: Amrit Panesar Date: Wed, 2 Sep 2015 12:23:13 -0700 Subject: [PATCH] use more strings Signed-off-by: Amrit Panesar --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index df4cbff..e51dc07 100644 --- a/client.go +++ b/client.go @@ -17,7 +17,7 @@ func (p *PushoverClient) new(token string) { 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{ "token": {p.ApplicationToken}, "user": {to}, @@ -27,7 +27,7 @@ func (p *PushoverClient) send(to string, message string, priority int32) { http.PostForm(pushoverURL, payload) } -func NewPushoverClient(token string) { +func New(token string) *PushoverClient { out := PushoverClient{} out.new(token) return &out