| Copyright | (c) 2015-2025 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+gogol@gmail.com> Toni Cebrián <toni@tonicebrian.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | GHC2021 |
Gogol.URLShortener.Url.Insert
Contents
Description
Creates a new short URL.
See: URL Shortener API Reference for urlshortener.url.insert.
Synopsis
- type URLShortenerUrlInsertResource = "urlshortener" :> ("v1" :> ("url" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Url :> Post '[JSON] Url))))
- newtype URLShortenerUrlInsert = URLShortenerUrlInsert {}
- newURLShortenerUrlInsert :: Url -> URLShortenerUrlInsert
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 | |
Instances
newURLShortenerUrlInsert Source #
Arguments
| :: Url | Multipart request metadata. See |
| -> URLShortenerUrlInsert |
Creates a value of URLShortenerUrlInsert with the minimum fields required to make a request.