gogol-urlshortener-0.3.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 # 
Data URLInsert Source # 

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 # 
Generic URLInsert Source # 

Associated Types

type Rep URLInsert :: * -> * #

GoogleRequest URLInsert Source # 

Associated Types

type Rs URLInsert :: * #

type Scopes URLInsert :: [Symbol] #

type Rep URLInsert Source # 
type Rep URLInsert = D1 (MetaData "URLInsert" "Network.Google.Resource.URLShortener.URL.Insert" "gogol-urlshortener-0.3.0-5DDvjEQ4ZJD9I5MzqFsWnf" True) (C1 (MetaCons "URLInsert'" PrefixI True) (S1 (MetaSel (Just Symbol "_uiPayload") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URL)))
type Scopes URLInsert Source # 
type Scopes URLInsert = (:) Symbol "https://www.googleapis.com/auth/urlshortener" ([] Symbol)
type Rs URLInsert Source # 

Request Lenses

uiPayload :: Lens' URLInsert URL Source #

Multipart request metadata.