Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postReviewsReviewApprove
Synopsis
- postReviewsReviewApprove :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostReviewsReviewApproveRequestBody -> m (Either HttpException (Response PostReviewsReviewApproveResponse))
- postReviewsReviewApproveRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostReviewsReviewApproveRequestBody -> m (Either HttpException (Response ByteString))
- postReviewsReviewApproveM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostReviewsReviewApproveRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostReviewsReviewApproveResponse))
- postReviewsReviewApproveRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostReviewsReviewApproveRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostReviewsReviewApproveRequestBody = PostReviewsReviewApproveRequestBody {}
- data PostReviewsReviewApproveResponse
Documentation
postReviewsReviewApprove Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | review | Constraints: Maximum length of 5000 |
-> PostReviewsReviewApproveRequestBody | The request body to send |
-> m (Either HttpException (Response PostReviewsReviewApproveResponse)) | Monad containing the result of the operation |
POST /v1/reviews/{review}/approve
<p>Approves a <code>Review</code> object, closing it and removing it from the list of reviews.</p>
postReviewsReviewApproveRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostReviewsReviewApproveRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/reviews/{review}/approve
The same as postReviewsReviewApprove
but returns the raw ByteString
postReviewsReviewApproveM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostReviewsReviewApproveRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostReviewsReviewApproveResponse)) Source #
POST /v1/reviews/{review}/approve
Monadic version of postReviewsReviewApprove
(use with runWithConfiguration
)
postReviewsReviewApproveRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostReviewsReviewApproveRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/reviews/{review}/approve
Monadic version of postReviewsReviewApproveRaw
(use with runWithConfiguration
)
data PostReviewsReviewApproveRequestBody Source #
Defines the data type for the schema postReviewsReviewApproveRequestBody
PostReviewsReviewApproveRequestBody | |
|
data PostReviewsReviewApproveResponse Source #
Represents a response of the operation postReviewsReviewApprove
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostReviewsReviewApproveResponseError
is used.
PostReviewsReviewApproveResponseError String | Means either no matching case available or a parse error |
PostReviewsReviewApproveResponse200 Review | Successful response. |
PostReviewsReviewApproveResponseDefault Error | Error response. |