From ad7ce4ef75121a1b745cb32fe6186ca9f8c59b21 Mon Sep 17 00:00:00 2001 From: Jonas Kwiedor Date: Sun, 17 Oct 2021 18:59:32 +0200 Subject: [PATCH 1/2] Change type --- contacts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contacts.go b/contacts.go index e881a90..1f2e537 100644 --- a/contacts.go +++ b/contacts.go @@ -183,7 +183,7 @@ func Contact(id string, token string) (ContactReturn, error) { } // AddContact is to add a new contact -func AddContact(body *ContactBody, token string) (ContactReturn, error) { +func AddContact(body ContactBody, token string) (ContactReturn, error) { // Convert data convert, err := json.Marshal(body) From 318dc3b8ffae7df3ffdef3b022c8d60735df0984 Mon Sep 17 00:00:00 2001 From: Jonas Kwiedor Date: Sun, 17 Oct 2021 18:59:39 +0200 Subject: [PATCH 2/2] Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb7b947..476e93f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ With the SMS sent you are able to send sms through your Placetel account. The wh ```go // Define body -body := &goplacetel.SendSmsBody{"0123456789", "Test message!"} +body := goplacetel.SendSmsBody{"0123456789", "Test message!"} // Send sms response, err := goplacetel.SendSms(body, "token") @@ -63,7 +63,7 @@ If a new contact is to be created, then this can be done as follows. The field: ```go // Define body -body := &goplacetel.ContactBody{ +body := goplacetel.ContactBody{ 0, "first_name", "last_name", @@ -100,7 +100,7 @@ This function is identical to the AddContact function. With the difference that ```go // Define body -body := &goplacetel.ContactBody{ +body := goplacetel.ContactBody{ id, "first_name", "last_name",