From 245501e18a9c5505369f72102dbf6c01341f5e02 Mon Sep 17 00:00:00 2001 From: Javier <48791471+orov-io@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:10:45 +0200 Subject: [PATCH] Update README.md client options was moved to option package --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(),