gogol-urlshortener-0.4.0: Google URL Shortener SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.URLShortener.URL.Get

Contents

Description

Expands a short URL or gets creation time and analytics.

See: URL Shortener API Reference for urlshortener.url.get.

Synopsis

REST Resource

type URLGetResource = "urlshortener" :> ("v1" :> ("url" :> (QueryParam "shortUrl" Text :> (QueryParam "projection" URLGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] URL))))) Source #

A resource alias for urlshortener.url.get method which the URLGet request conforms to.

Creating a Request

urlGet Source #

Arguments

:: Text

ugShortURL

-> URLGet 

Creates a value of URLGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data URLGet Source #

Expands a short URL or gets creation time and analytics.

See: urlGet smart constructor.

Instances
Eq URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

Methods

(==) :: URLGet -> URLGet -> Bool #

(/=) :: URLGet -> URLGet -> Bool #

Data URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLGet -> c URLGet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLGet #

toConstr :: URLGet -> Constr #

dataTypeOf :: URLGet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLGet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLGet) #

gmapT :: (forall b. Data b => b -> b) -> URLGet -> URLGet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLGet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLGet -> r #

gmapQ :: (forall d. Data d => d -> u) -> URLGet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> URLGet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet #

Show URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

Generic URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

Associated Types

type Rep URLGet :: Type -> Type #

Methods

from :: URLGet -> Rep URLGet x #

to :: Rep URLGet x -> URLGet #

GoogleRequest URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

Associated Types

type Rs URLGet :: Type #

type Scopes URLGet :: [Symbol] #

type Rep URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

type Rep URLGet = D1 (MetaData "URLGet" "Network.Google.Resource.URLShortener.URL.Get" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "URLGet'" PrefixI True) (S1 (MetaSel (Just "_ugProjection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe URLGetProjection)) :*: S1 (MetaSel (Just "_ugShortURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

type Scopes URLGet = "https://www.googleapis.com/auth/urlshortener" ': ([] :: [Symbol])
type Rs URLGet Source # 
Instance details

Defined in Network.Google.Resource.URLShortener.URL.Get

type Rs URLGet = URL

Request Lenses

ugProjection :: Lens' URLGet (Maybe URLGetProjection) Source #

Additional information to return.

ugShortURL :: Lens' URLGet Text Source #

The short URL, including the protocol.