Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation get_subscription
Synopsis
- get_subscription :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_subscriptionResponse)
- data Get_subscriptionResponse
- get_subscriptionWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_subscriptionResponse)
- get_subscriptionRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_subscriptionWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
:: forall m. MonadHTTP m | |
=> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> ClientT m (Response Get_subscriptionResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}
Fetch a subscription
data Get_subscriptionResponse Source #
Represents a response of the operation get_subscription
.
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), Get_subscriptionResponseError
is used.
Get_subscriptionResponseError String | Means either no matching case available or a parse error |
Get_subscriptionResponse200 Subscription | A subscription. |
Get_subscriptionResponse404 Error | Incorrect site or subscription ID. |
Get_subscriptionResponseDefault Error | Unexpected error |
Instances
get_subscriptionWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> m (Response Get_subscriptionResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}
The same as get_subscription
but accepts an explicit configuration.
:: forall m. MonadHTTP m | |
=> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}
The same as get_subscription
but returns the raw ByteString
.
get_subscriptionWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}
The same as get_subscription
but accepts an explicit configuration and returns the raw ByteString
.