Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Expands a short URL or gets creation time and analytics.
See: URL Shortener API Reference for urlshortener.url.get
.
- type URLGetResource = "urlshortener" :> ("v1" :> ("url" :> (QueryParam "shortUrl" Text :> (QueryParam "projection" URLGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] URL)))))
- urlGet :: Text -> URLGet
- data URLGet
- ugProjection :: Lens' URLGet (Maybe URLGetProjection)
- ugShortURL :: Lens' URLGet Text
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
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:
Expands a short URL or gets creation time and analytics.
See: urlGet
smart constructor.
Request Lenses
ugProjection :: Lens' URLGet (Maybe URLGetProjection) Source #
Additional information to return.