(Passthrough.{retryid})
- GetRetriedRequestResponse - Retrieve response of a failed passthrough request due to rate limits
Retrieve response of a failed passthrough request due to rate limits
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
}
}
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. |
*operations.GetRetriedRequestResponseResponse, error
Error Type | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4XX, 5XX | */* |