Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
client options was moved to option package
  • Loading branch information
orov-io authored Oct 18, 2024
1 parent 160b6c4 commit 245501e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ This module requires Go version >= 1.19.

```go
import (
hookdeck "github.com/hookdeck/hookdeck-go-sdk"
hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
hookdeckoption "github.com/hookdeck/hookdeck-go-sdk/option"
)

client := hookdeckclient.NewClient(
hookdeckclient.ClientWithAuthToken("<YOUR_AUTH_TOKEN>"),
hookdeckoption.WithToken("<YOUR_AUTH_TOKEN>"),
)
```

Expand All @@ -43,10 +43,11 @@ import (

hookdeck "github.com/hookdeck/hookdeck-go-sdk"
hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
hookdeckoption "github.com/hookdeck/hookdeck-go-sdk/option"
)

client := hookdeckclient.NewClient(
hookdeckclient.ClientWithAuthToken("<YOUR_API_KEY>"),
hookdeckoption.WithToken("<YOUR_AUTH_TOKEN>"),
)
attempts, err := client.Attempts().GetAttempts(
context.TODO(),
Expand Down

0 comments on commit 245501e

Please sign in to comment.