All URIs are relative to https://octopus.codio.com
| Method | HTTP request | Description |
|---|---|---|
| EventList | Get /api/v1/events | List Webhook Events |
EventsList EventList(ctx).NextToken(nextToken).Limit(limit).Execute()
List Webhook Events
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/codio/codio-api-go"
)
func main() {
nextToken := "nextToken_example" // string | Continuation request token (optional)
limit := "limit_example" // string | Count of returned events (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsAPIAPI.EventList(context.Background()).NextToken(nextToken).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsAPIAPI.EventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EventList`: EventsList
fmt.Fprintf(os.Stdout, "Response from `EventsAPIAPI.EventList`: %v\n", resp)
}Other parameters are passed through a pointer to a apiEventListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| nextToken | string | Continuation request token | |
| limit | string | Count of returned events |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]