Skip to content

Commit

Permalink
Merge pull request #3 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
Change type for AddContact function
  • Loading branch information
gowizzard committed Oct 17, 2021
2 parents ed1a1fa + 318dc3b commit 576cb6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion contacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 576cb6a

Please sign in to comment.