diff --git a/README.md b/README.md index 08d3885..19fd75d 100644 --- a/README.md +++ b/README.md @@ -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(""), + hookdeckoption.WithToken(""), ) ``` @@ -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(""), + hookdeckoption.WithToken(""), ) attempts, err := client.Attempts().GetAttempts( context.TODO(),