gogol-urlshortener-1.0.0: Google URL Shortener SDK.
Copyright(c) 2015-2025 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+gogol@gmail.com> Toni Cebrián <toni@tonicebrian.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageGHC2021

Gogol.URLShortener.Url.Insert

Description

Creates a new short URL.

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

Synopsis

Resource

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

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

Constructing a Request

newtype URLShortenerUrlInsert Source #

Creates a new short URL.

See: newURLShortenerUrlInsert smart constructor.

Constructors

URLShortenerUrlInsert 

Fields

Instances

Instances details
Generic URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

Associated Types

type Rep URLShortenerUrlInsert 
Instance details

Defined in Gogol.URLShortener.Url.Insert

type Rep URLShortenerUrlInsert = D1 ('MetaData "URLShortenerUrlInsert" "Gogol.URLShortener.Url.Insert" "gogol-urlshortener-1.0.0-Eavoe52yh8RBZydGcJO1Xz" 'True) (C1 ('MetaCons "URLShortenerUrlInsert" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Url)))
Show URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

Eq URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

GoogleRequest URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

type Rep URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

type Rep URLShortenerUrlInsert = D1 ('MetaData "URLShortenerUrlInsert" "Gogol.URLShortener.Url.Insert" "gogol-urlshortener-1.0.0-Eavoe52yh8RBZydGcJO1Xz" 'True) (C1 ('MetaCons "URLShortenerUrlInsert" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Url)))
type Rs URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

type Scopes URLShortenerUrlInsert Source # 
Instance details

Defined in Gogol.URLShortener.Url.Insert

newURLShortenerUrlInsert Source #

Arguments

:: Url

Multipart request metadata. See payload.

-> URLShortenerUrlInsert 

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