Skip to content

Commit

Permalink
Merge pull request #10 from orov-io/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
leggetter authored Dec 11, 2024
2 parents 160b6c4 + 245501e commit a009909
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 a009909

Please sign in to comment.