Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dimuska139 committed Oct 23, 2019
1 parent 67fdcdd commit 033b759
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ const ApiTimeout = 5

func main() {
addressBookId := 12345

client, e := sendpulse.ApiClient(ApiUserId, ApiSecret, ApiTimeout)

config := sendpulse.Config{
UserID: ApiUserId,
Secret: ApiSecret,
Timeout: ApiTimeout,
}

client, e := sendpulse.ApiClient(config)
if e != nil {
fmt.Println(e)
}

// Get address book info by id
bookInfo, e := client.Books.Get(uint(addressBookId))
bookInfo, e := client.Emails.Books.Get(uint(addressBookId))
if e != nil {
fmt.Println(e)
} else {
Expand Down

0 comments on commit 033b759

Please sign in to comment.