mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-02 03:08:57 -07:00
move error over to client
This commit is contained in:
@@ -2,6 +2,8 @@ package client
|
|||||||
|
|
||||||
const apiEndpoint = "https://api.elevenlabs.io"
|
const apiEndpoint = "https://api.elevenlabs.io"
|
||||||
|
|
||||||
|
var ErrUnauthorized error
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
apiKey string
|
apiKey string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ import (
|
|||||||
"github.com/taigrr/elevenlabs/client/types"
|
"github.com/taigrr/elevenlabs/client/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrUnauthorized error
|
|
||||||
|
|
||||||
func (c Client) HistoryDelete(ctx context.Context, historyItemId string) (bool, error) {
|
func (c Client) HistoryDelete(ctx context.Context, historyItemId string) (bool, error) {
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
url := fmt.Sprintf(apiEndpoint+"/v1/history/%s", historyItemId)
|
url := fmt.Sprintf(apiEndpoint+"/v1/history/%s", historyItemId)
|
||||||
|
|||||||
Reference in New Issue
Block a user