move error over to client

This commit is contained in:
2023-04-18 13:21:28 -07:00
parent 8ef4e0a7fe
commit 81328860a1
2 changed files with 2 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ package client
const apiEndpoint = "https://api.elevenlabs.io"
var ErrUnauthorized error
type Client struct {
apiKey string
}

View File

@@ -11,8 +11,6 @@ import (
"github.com/taigrr/elevenlabs/client/types"
)
var ErrUnauthorized error
func (c Client) HistoryDelete(ctx context.Context, historyItemId string) (bool, error) {
// create path and map variables
url := fmt.Sprintf(apiEndpoint+"/v1/history/%s", historyItemId)