Package com.openai.services.async
Class WebhookServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.WebhookServiceAsync
public final class WebhookServiceAsyncImpl implements WebhookServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
WebhookServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description WebhookServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. WebhookServiceAsync
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. UnwrapWebhookEvent
unwrap(WebhookVerificationParams params)
Validates that the given payload was sent by OpenAI and parses the payload. Unit
verifySignature(WebhookVerificationParams params)
Validates whether or not the webhook payload was sent by OpenAI. -
-
Method Detail
-
withRawResponse
WebhookServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
WebhookServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
unwrap
UnwrapWebhookEvent unwrap(WebhookVerificationParams params)
Validates that the given payload was sent by OpenAI and parses the payload.
- Parameters:
params
- Verification parameters including payload, headers, secret and tolerance
-
verifySignature
Unit verifySignature(WebhookVerificationParams params)
Validates whether or not the webhook payload was sent by OpenAI.
- Parameters:
params
- Verification parameters including payload, headers, secret and tolerance
-
-
-
-