use more strings

Signed-off-by: Amrit Panesar <amrit@station-app.com>
This commit is contained in:
Amrit Panesar committed 2015-09-02 12:23:13 -07:00
1 parent e81273ba14
commit eb9ced212c
1 file changed
+2 -2
+2 -2
View File
@@ -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