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
@@ -5,7 +5,7 @@ import "fmt"
|
||||
// ListEpochs lists all epochs for the organization.
|
||||
func (c *Client) ListEpochs() (*ListEpochsResponse, error) {
|
||||
var result ListEpochsResponse
|
||||
if err := c.doGet("/epochs", &result); err != nil {
|
||||
if err := c.doGet("/v1/epochs", &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
@@ -14,7 +14,7 @@ func (c *Client) ListEpochs() (*ListEpochsResponse, error) {
|
||||
// GetEpoch retrieves a specific epoch by ID.
|
||||
func (c *Client) GetEpoch(epochID string) (*GetEpochResponse, error) {
|
||||
var result GetEpochResponse
|
||||
if err := c.doGet(fmt.Sprintf("/epochs/%s", epochID), &result); err != nil {
|
||||
if err := c.doGet(fmt.Sprintf("/v1/epochs/%s", epochID), &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
|
||||
Reference in new issue
Block a user