Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit a009909

Browse files
authored
Merge pull request #10 from orov-io/patch-1
Update README.md
2 parents 160b6c4 + 245501e commit a009909

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ This module requires Go version >= 1.19.
2323

2424
```go
2525
import (
26-
hookdeck "github.com/hookdeck/hookdeck-go-sdk"
2726
hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
27+
hookdeckoption "github.com/hookdeck/hookdeck-go-sdk/option"
2828
)
2929

3030
client := hookdeckclient.NewClient(
31-
hookdeckclient.ClientWithAuthToken("<YOUR_AUTH_TOKEN>"),
31+
hookdeckoption.WithToken("<YOUR_AUTH_TOKEN>"),
3232
)
3333
```
3434

@@ -43,10 +43,11 @@ import (
4343

4444
hookdeck "github.com/hookdeck/hookdeck-go-sdk"
4545
hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
46+
hookdeckoption "github.com/hookdeck/hookdeck-go-sdk/option"
4647
)
4748

4849
client := hookdeckclient.NewClient(
49-
hookdeckclient.ClientWithAuthToken("<YOUR_API_KEY>"),
50+
hookdeckoption.WithToken("<YOUR_AUTH_TOKEN>"),
5051
)
5152
attempts, err := client.Attempts().GetAttempts(
5253
context.TODO(),

0 commit comments

Comments
 (0)