recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.Get_site

Description

Contains the different functions to run the operation get_site

Synopsis

Documentation

get_site Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

site_id: Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.

-> ClientT m (Response Get_siteResponse)

Monadic computation which returns the result of the operation

GET /sites/{site_id}

Fetch a site

data Get_siteResponse Source #

Represents a response of the operation get_site.

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_siteResponseError is used.

Constructors

Get_siteResponseError String

Means either no matching case available or a parse error

Get_siteResponse200 Site

A site.

Get_siteResponse404 Error

Incorrect site ID.

Get_siteResponseDefault Error

Unexpected error.

get_siteWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

site_id: Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.

-> m (Response Get_siteResponse)

Monadic computation which returns the result of the operation

GET /sites/{site_id}

The same as get_site but accepts an explicit configuration.

get_siteRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

site_id: Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /sites/{site_id}

The same as get_site but returns the raw ByteString.

get_siteWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

site_id: Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /sites/{site_id}

The same as get_site but accepts an explicit configuration and returns the raw ByteString.