Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.69 KB

TaskApi.md

File metadata and controls

79 lines (49 loc) · 1.69 KB

client\TaskApi

All URIs are relative to https://api.gridly.com

Method HTTP request Description
Get Get /v1/tasks/{taskId} get

Get

Task Get(ctx, taskId).Execute()

get

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
taskId string taskId

Other Parameters

Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Task

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]