Update module path to github.com/Elydora-Infrastructure/Elydora-Go-SDK
- Update go.mod module path - Update all import references - Update README install and import examples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fdae7e9a18
commit
0fdedb7247
13 files changed
+38
-99
No files matched your search
+3
-3
@@ -5,7 +5,7 @@ import "fmt"
|
||||
// CreateExport creates a new compliance export job.
|
||||
func (c *Client) CreateExport(params *CreateExportRequest) (*CreateExportResponse, error) {
|
||||
var result CreateExportResponse
|
||||
if err := c.doPost("/exports", params, &result); err != nil {
|
||||
if err := c.doPost("/v1/exports", params, &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
@@ -14,7 +14,7 @@ func (c *Client) CreateExport(params *CreateExportRequest) (*CreateExportRespons
|
||||
// ListExports lists all exports for the organization.
|
||||
func (c *Client) ListExports() (*ListExportsResponse, error) {
|
||||
var result ListExportsResponse
|
||||
if err := c.doGet("/exports", &result); err != nil {
|
||||
if err := c.doGet("/v1/exports", &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
@@ -23,7 +23,7 @@ func (c *Client) ListExports() (*ListExportsResponse, error) {
|
||||
// GetExport retrieves a specific export by ID.
|
||||
func (c *Client) GetExport(exportID string) (*GetExportResponse, error) {
|
||||
var result GetExportResponse
|
||||
if err := c.doGet(fmt.Sprintf("/exports/%s", exportID), &result); err != nil {
|
||||
if err := c.doGet(fmt.Sprintf("/v1/exports/%s", exportID), &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
|
||||
Reference in new issue
Block a user