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
.
Synopsis
- 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.
Instances
Eq URLGet Source # | |
Data URLGet Source # | |
Defined in Network.Google.Resource.URLShortener.URL.Get gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLGet -> c URLGet # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLGet # toConstr :: URLGet -> Constr # dataTypeOf :: URLGet -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLGet) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLGet) # gmapT :: (forall b. Data b => b -> b) -> URLGet -> URLGet # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLGet -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLGet -> r # gmapQ :: (forall d. Data d => d -> u) -> URLGet -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> URLGet -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGet -> m URLGet # | |
Show URLGet Source # | |
Generic URLGet Source # | |
GoogleRequest URLGet Source # | |
type Rep URLGet Source # | |
Defined in Network.Google.Resource.URLShortener.URL.Get type Rep URLGet = D1 (MetaData "URLGet" "Network.Google.Resource.URLShortener.URL.Get" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "URLGet'" PrefixI True) (S1 (MetaSel (Just "_ugProjection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe URLGetProjection)) :*: S1 (MetaSel (Just "_ugShortURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) | |
type Scopes URLGet Source # | |
Defined in Network.Google.Resource.URLShortener.URL.Get | |
type Rs URLGet Source # | |
Defined in Network.Google.Resource.URLShortener.URL.Get |
Request Lenses
ugProjection :: Lens' URLGet (Maybe URLGetProjection) Source #
Additional information to return.