Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.48 KB

README.md

File metadata and controls

57 lines (41 loc) · 2.48 KB

Retryid

(Passthrough.{retryid})

Overview

Available Operations

GetRetriedRequestResponse

Retrieve response of a failed passthrough request due to rate limits

Example Usage

package main

import(
	gosdk "github.com/panoratech/go-sdk"
	"context"
	"log"
)

func main() {
    s := gosdk.New(
        gosdk.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Passthrough.{retryid}.GetRetriedRequestResponse(ctx, "<value>")
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
retryID string ✔️ id of the retryJob returned when you initiated a passthrough request.
opts []operations.Option The options for this request.

Response

*operations.GetRetriedRequestResponseResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.SDKError 4XX, 5XX */*