Skip to content

Commit

Permalink
Add better usage example to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney committed Jul 12, 2023
1 parent ff2878a commit 688b3ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ func run() error {
client := hookdeck.NewClient(
hookdeck.ClientWithAuthBearer("<YOUR_API_KEY>"),
)
attempts, err := client.Attempts().GetAttempts(
context.TODO(),
&hookdeck.GetAttemptsRequest{
EventId: hookdeck.String("<event_id>"),
},
)
if err != nil {
return err
}
}
```

Expand Down

0 comments on commit 688b3ea

Please sign in to comment.