mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-01 18:58:52 -07:00
move error over to client
This commit is contained in:
@@ -2,6 +2,8 @@ package client
|
||||
|
||||
const apiEndpoint = "https://api.elevenlabs.io"
|
||||
|
||||
var ErrUnauthorized error
|
||||
|
||||
type Client struct {
|
||||
apiKey string
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user