Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.76 KB

JobsApi.md

File metadata and controls

79 lines (49 loc) · 1.76 KB

\JobsApi

All URIs are relative to https://acme.us.crossid.io/api/v1

Method HTTP request Description
GetJob Get /api/v1/jobs/{id} Retrieve a Job.

GetJob

Job GetJob(ctx, id).Execute()

Retrieve a Job.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    id := "T1e642kLYG3iZYGjo5REVW" // string | The job ID

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.JobsApi.GetJob(context.Background(), id).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `JobsApi.GetJob``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetJob`: Job
    fmt.Fprintf(os.Stdout, "Response from `JobsApi.GetJob`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string The job ID

Other Parameters

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

Name Type Description Notes

Return type

Job

Authorization

oauth2

HTTP request headers

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

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