gogol-urlshortener-0.4.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.URLShortener

Contents

Description

Lets you create, inspect, and manage goo.gl short URLs

See: URL Shortener API Reference

Synopsis

Service Configuration

uRLShortenerService :: ServiceConfig Source #

Default request referring to version v1 of the URL Shortener API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

urlShortenerScope :: Proxy '["https://www.googleapis.com/auth/urlshortener"] Source #

Manage your goo.gl short URLs

API Declaration

type URLShortenerAPI = URLInsertResource :<|> (URLListResource :<|> URLGetResource) Source #

Represents the entirety of the methods and resources available for the URL Shortener API service.

Resources

urlshortener.url.get

urlshortener.url.insert

urlshortener.url.list

Types

URL

data URL Source #

Instances
Eq URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

(==) :: URL -> URL -> Bool #

(/=) :: URL -> URL -> Bool #

Data URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URL -> c URL #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URL #

toConstr :: URL -> Constr #

dataTypeOf :: URL -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URL) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URL) #

gmapT :: (forall b. Data b => b -> b) -> URL -> URL #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URL -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URL -> r #

gmapQ :: (forall d. Data d => d -> u) -> URL -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> URL -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> URL -> m URL #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URL -> m URL #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URL -> m URL #

Show URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

showsPrec :: Int -> URL -> ShowS #

show :: URL -> String #

showList :: [URL] -> ShowS #

Generic URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Associated Types

type Rep URL :: Type -> Type #

Methods

from :: URL -> Rep URL x #

to :: Rep URL x -> URL #

ToJSON URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

FromJSON URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep URL Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

url :: URL Source #

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

Use one of the following lenses to modify other fields as desired:

uStatus :: Lens' URL (Maybe Text) Source #

Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.

uKind :: Lens' URL Text Source #

The fixed string "urlshortener#url".

uCreated :: Lens' URL (Maybe Text) Source #

Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".

uAnalytics :: Lens' URL (Maybe AnalyticsSummary) Source #

A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.

uLongURL :: Lens' URL (Maybe Text) Source #

Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".

uId :: Lens' URL (Maybe Text) Source #

Short URL, e.g. "http://goo.gl/l6MS".

StringCount

data StringCount Source #

Instances
Eq StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Data StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StringCount -> c StringCount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StringCount #

toConstr :: StringCount -> Constr #

dataTypeOf :: StringCount -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c StringCount) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StringCount) #

gmapT :: (forall b. Data b => b -> b) -> StringCount -> StringCount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StringCount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StringCount -> r #

gmapQ :: (forall d. Data d => d -> u) -> StringCount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StringCount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StringCount -> m StringCount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StringCount -> m StringCount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StringCount -> m StringCount #

Show StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Generic StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Associated Types

type Rep StringCount :: Type -> Type #

ToJSON StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

FromJSON StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep StringCount Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep StringCount = D1 (MetaData "StringCount" "Network.Google.URLShortener.Types.Product" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "StringCount'" PrefixI True) (S1 (MetaSel (Just "_scCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_scId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

stringCount :: StringCount Source #

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

Use one of the following lenses to modify other fields as desired:

scCount :: Lens' StringCount (Maybe Int64) Source #

Number of clicks for this top entry, e.g. for this particular country or browser.

scId :: Lens' StringCount (Maybe Text) Source #

Label assigned to this top entry, e.g. "US" or "Chrome".

URLListProjection

data URLListProjection Source #

Additional information to return.

Constructors

AnalyticsClicks

ANALYTICS_CLICKS Returns short URL click counts.

Full

FULL Returns short URL click counts.

Instances
Enum URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Eq URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Data URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLListProjection -> c URLListProjection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLListProjection #

toConstr :: URLListProjection -> Constr #

dataTypeOf :: URLListProjection -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLListProjection) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLListProjection) #

gmapT :: (forall b. Data b => b -> b) -> URLListProjection -> URLListProjection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLListProjection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLListProjection -> r #

gmapQ :: (forall d. Data d => d -> u) -> URLListProjection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> URLListProjection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLListProjection -> m URLListProjection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLListProjection -> m URLListProjection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLListProjection -> m URLListProjection #

Ord URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Read URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Show URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Generic URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Associated Types

type Rep URLListProjection :: Type -> Type #

Hashable URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

ToJSON URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

FromJSON URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

FromHttpApiData URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

ToHttpApiData URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

type Rep URLListProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

type Rep URLListProjection = D1 (MetaData "URLListProjection" "Network.Google.URLShortener.Types.Sum" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "AnalyticsClicks" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Full" PrefixI False) (U1 :: Type -> Type))

AnalyticsSnapshot

data AnalyticsSnapshot Source #

Instances
Eq AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Data AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AnalyticsSnapshot -> c AnalyticsSnapshot #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AnalyticsSnapshot #

toConstr :: AnalyticsSnapshot -> Constr #

dataTypeOf :: AnalyticsSnapshot -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AnalyticsSnapshot) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AnalyticsSnapshot) #

gmapT :: (forall b. Data b => b -> b) -> AnalyticsSnapshot -> AnalyticsSnapshot #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AnalyticsSnapshot -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AnalyticsSnapshot -> r #

gmapQ :: (forall d. Data d => d -> u) -> AnalyticsSnapshot -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AnalyticsSnapshot -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AnalyticsSnapshot -> m AnalyticsSnapshot #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AnalyticsSnapshot -> m AnalyticsSnapshot #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AnalyticsSnapshot -> m AnalyticsSnapshot #

Show AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Generic AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Associated Types

type Rep AnalyticsSnapshot :: Type -> Type #

ToJSON AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

FromJSON AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep AnalyticsSnapshot Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep AnalyticsSnapshot = D1 (MetaData "AnalyticsSnapshot" "Network.Google.URLShortener.Types.Product" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "AnalyticsSnapshot'" PrefixI True) ((S1 (MetaSel (Just "_asPlatforms") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StringCount])) :*: (S1 (MetaSel (Just "_asShortURLClicks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_asReferrers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StringCount])))) :*: (S1 (MetaSel (Just "_asCountries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StringCount])) :*: (S1 (MetaSel (Just "_asLongURLClicks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_asBrowsers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StringCount]))))))

analyticsSnapshot :: AnalyticsSnapshot Source #

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

Use one of the following lenses to modify other fields as desired:

asPlatforms :: Lens' AnalyticsSnapshot [StringCount] Source #

Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.

asShortURLClicks :: Lens' AnalyticsSnapshot (Maybe Int64) Source #

Number of clicks on this short URL.

asReferrers :: Lens' AnalyticsSnapshot [StringCount] Source #

Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.

asCountries :: Lens' AnalyticsSnapshot [StringCount] Source #

Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.

asLongURLClicks :: Lens' AnalyticsSnapshot (Maybe Int64) Source #

Number of clicks on all goo.gl short URLs pointing to this long URL.

asBrowsers :: Lens' AnalyticsSnapshot [StringCount] Source #

Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.

AnalyticsSummary

data AnalyticsSummary Source #

Instances
Eq AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Data AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AnalyticsSummary -> c AnalyticsSummary #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AnalyticsSummary #

toConstr :: AnalyticsSummary -> Constr #

dataTypeOf :: AnalyticsSummary -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AnalyticsSummary) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AnalyticsSummary) #

gmapT :: (forall b. Data b => b -> b) -> AnalyticsSummary -> AnalyticsSummary #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AnalyticsSummary -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AnalyticsSummary -> r #

gmapQ :: (forall d. Data d => d -> u) -> AnalyticsSummary -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AnalyticsSummary -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AnalyticsSummary -> m AnalyticsSummary #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AnalyticsSummary -> m AnalyticsSummary #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AnalyticsSummary -> m AnalyticsSummary #

Show AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Generic AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Associated Types

type Rep AnalyticsSummary :: Type -> Type #

ToJSON AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

FromJSON AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep AnalyticsSummary Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

analyticsSummary :: AnalyticsSummary Source #

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

Use one of the following lenses to modify other fields as desired:

asWeek :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot) Source #

Click analytics over the last week.

asAllTime :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot) Source #

Click analytics over all time.

asDay :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot) Source #

Click analytics over the last day.

asTwoHours :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot) Source #

Click analytics over the last two hours.

asMonth :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot) Source #

Click analytics over the last month.

URLGetProjection

data URLGetProjection Source #

Additional information to return.

Constructors

UGPAnalyticsClicks

ANALYTICS_CLICKS Returns only click counts.

UGPAnalyticsTopStrings

ANALYTICS_TOP_STRINGS Returns only top string counts.

UGPFull

FULL Returns the creation timestamp and all available analytics.

Instances
Enum URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Eq URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Data URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLGetProjection -> c URLGetProjection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLGetProjection #

toConstr :: URLGetProjection -> Constr #

dataTypeOf :: URLGetProjection -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLGetProjection) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLGetProjection) #

gmapT :: (forall b. Data b => b -> b) -> URLGetProjection -> URLGetProjection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLGetProjection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLGetProjection -> r #

gmapQ :: (forall d. Data d => d -> u) -> URLGetProjection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> URLGetProjection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLGetProjection -> m URLGetProjection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGetProjection -> m URLGetProjection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLGetProjection -> m URLGetProjection #

Ord URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Read URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Show URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Generic URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

Associated Types

type Rep URLGetProjection :: Type -> Type #

Hashable URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

ToJSON URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

FromJSON URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

FromHttpApiData URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

ToHttpApiData URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

type Rep URLGetProjection Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Sum

type Rep URLGetProjection = D1 (MetaData "URLGetProjection" "Network.Google.URLShortener.Types.Sum" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "UGPAnalyticsClicks" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "UGPAnalyticsTopStrings" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UGPFull" PrefixI False) (U1 :: Type -> Type)))

URLHistory

data URLHistory Source #

Instances
Eq URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Data URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLHistory -> c URLHistory #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLHistory #

toConstr :: URLHistory -> Constr #

dataTypeOf :: URLHistory -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLHistory) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLHistory) #

gmapT :: (forall b. Data b => b -> b) -> URLHistory -> URLHistory #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLHistory -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLHistory -> r #

gmapQ :: (forall d. Data d => d -> u) -> URLHistory -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> URLHistory -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLHistory -> m URLHistory #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLHistory -> m URLHistory #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLHistory -> m URLHistory #

Show URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Generic URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

Associated Types

type Rep URLHistory :: Type -> Type #

ToJSON URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

FromJSON URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep URLHistory Source # 
Instance details

Defined in Network.Google.URLShortener.Types.Product

type Rep URLHistory = D1 (MetaData "URLHistory" "Network.Google.URLShortener.Types.Product" "gogol-urlshortener-0.4.0-Bdh5132xSli1UeVEi8MZus" False) (C1 (MetaCons "URLHistory'" PrefixI True) ((S1 (MetaSel (Just "_uhTotalItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_uhNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_uhItemsPerPage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_uhKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_uhItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [URL]))))))

urlHistory :: URLHistory Source #

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

Use one of the following lenses to modify other fields as desired:

uhTotalItems :: Lens' URLHistory (Maybe Int32) Source #

Total number of short URLs associated with this user (may be approximate).

uhNextPageToken :: Lens' URLHistory (Maybe Text) Source #

A token to provide to get the next page of results.

uhItemsPerPage :: Lens' URLHistory (Maybe Int32) Source #

Number of items returned with each full "page" of results. Note that the last page could have fewer items than the "itemsPerPage" value.

uhKind :: Lens' URLHistory Text Source #

The fixed string "urlshortener#urlHistory".

uhItems :: Lens' URLHistory [URL] Source #

A list of URL resources.