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. |
Job GetJob(ctx, id).Execute()
Retrieve a Job.
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The job ID |
Other parameters are passed through a pointer to a apiGetJobRequest 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]