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.Insert

Contents

Description

Creates a new short URL.

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

Synopsis

REST Resource

type URLInsertResource = "urlshortener" :> ("v1" :> ("url" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] URL :> Post '[JSON] URL)))) Source #

A resource alias for urlshortener.url.insert method which the URLInsert request conforms to.

Creating a Request

urlInsert Source #

Arguments

:: URL

uiPayload

-> URLInsert 

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

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

data URLInsert Source #

Creates a new short URL.

See: urlInsert smart constructor.

Instances
Eq URLInsert Source # 
Instance details

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

Data URLInsert Source # 
Instance details

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

Methods

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

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

toConstr :: URLInsert -> Constr #

dataTypeOf :: URLInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show URLInsert Source # 
Instance details

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

Generic URLInsert Source # 
Instance details

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

Associated Types

type Rep URLInsert :: Type -> Type #

GoogleRequest URLInsert Source # 
Instance details

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

Associated Types

type Rs URLInsert :: Type #

type Scopes URLInsert :: [Symbol] #

type Rep URLInsert Source # 
Instance details

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

type Rep URLInsert = D1 (MetaData "URLInsert" "Network.Google.Resource.URLShortener.URL.Insert" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" True) (C1 (MetaCons "URLInsert'" PrefixI True) (S1 (MetaSel (Just "_uiPayload") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URL)))
type Scopes URLInsert Source # 
Instance details

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

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

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

Request Lenses

uiPayload :: Lens' URLInsert URL Source #

Multipart request metadata.