package
0.0.0-20240405104727-3fc460ca096e
Repository: https://github.com/brandedtech/sp-api-sdk.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreateDestinationRequest calls the generic CreateDestination builder with application/json body.
NewCreateDestinationRequestWithBody generates requests for CreateDestination with any type of body.
NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body.
NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body.
NewDeleteDestinationRequest generates requests for DeleteDestination.
NewDeleteSubscriptionByIdRequest generates requests for DeleteSubscriptionById.
NewGetDestinationRequest generates requests for GetDestination.
NewGetDestinationsRequest generates requests for GetDestinations.
NewGetSubscriptionByIdRequest generates requests for GetSubscriptionById.
NewGetSubscriptionRequest generates requests for GetSubscription.
ParseCreateDestinationResp parses an HTTP response from a CreateDestinationWithResponse call.
ParseCreateSubscriptionResp parses an HTTP response from a CreateSubscriptionWithResponse call.
ParseDeleteDestinationResp parses an HTTP response from a DeleteDestinationWithResponse call.
ParseDeleteSubscriptionByIdResp parses an HTTP response from a DeleteSubscriptionByIdWithResponse call.
ParseGetDestinationResp parses an HTTP response from a GetDestinationWithResponse call.
ParseGetDestinationsResp parses an HTTP response from a GetDestinationsWithResponse call.
ParseGetSubscriptionByIdResp parses an HTTP response from a GetSubscriptionByIdWithResponse call.
ParseGetSubscriptionResp parses an HTTP response from a GetSubscriptionWithResponse call.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestBefore allows setting up a callback function, which will be called right before sending the request.
WithResponseAfter allows setting up a callback function, which will be called right after get response the request.
WithUserAgent set up useragent add user agent to every request automatically.

# Constants

# Structs

Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
CreateDestinationRequest defines model for CreateDestinationRequest.
No description provided by the author
CreateDestinationResponse defines model for CreateDestinationResponse.
CreateSubscriptionRequest defines model for CreateSubscriptionRequest.
No description provided by the author
CreateSubscriptionResponse defines model for CreateSubscriptionResponse.
No description provided by the author
DeleteDestinationResponse defines model for DeleteDestinationResponse.
No description provided by the author
DeleteSubscriptionByIdResponse defines model for DeleteSubscriptionByIdResponse.
Destination defines model for Destination.
DestinationResource defines model for DestinationResource.
DestinationResourceSpecification defines model for DestinationResourceSpecification.
Error defines model for Error.
EventBridgeResource defines model for EventBridgeResource.
EventBridgeResourceSpecification defines model for EventBridgeResourceSpecification.
No description provided by the author
GetDestinationResponse defines model for GetDestinationResponse.
No description provided by the author
GetDestinationsResponse defines model for GetDestinationsResponse.
No description provided by the author
GetSubscriptionByIdResponse defines model for GetSubscriptionByIdResponse.
No description provided by the author
GetSubscriptionResponse defines model for GetSubscriptionResponse.
SqsResource defines model for SqsResource.
Subscription defines model for Subscription.

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.

# Type aliases

ClientOption allows setting custom parameters during construction.
CreateDestinationJSONBody defines parameters for CreateDestination.
CreateDestinationRequestBody defines body for CreateDestination for application/json ContentType.
CreateSubscriptionJSONBody defines parameters for CreateSubscription.
CreateSubscriptionRequestBody defines body for CreateSubscription for application/json ContentType.
DestinationList defines model for DestinationList.
ErrorList defines model for ErrorList.
NotificationType defines model for NotificationType.
RequestBeforeFn is the function signature for the RequestBefore callback function.
ResponseAfterFn is the function signature for the ResponseAfter callback function.