All URIs are relative to https://api.gridly.com
Method | HTTP request | Description |
---|---|---|
Get | Get /v1/tasks/{taskId} | get |
Task Get(ctx, taskId).Execute()
get
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
taskId := "taskId_example" // string | taskId
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.TaskApi.Get(context.Background(), taskId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TaskApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: Task
fmt.Fprintf(os.Stdout, "Response from `TaskApi.Get`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
taskId | string | taskId |
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]