Copyright | (c) 2015 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 |
- uRLShortenerService :: Service
- urlshortenerScope :: OAuthScope
- data URL
- url :: URL
- uStatus :: Lens' URL (Maybe Text)
- uKind :: Lens' URL Text
- uCreated :: Lens' URL (Maybe Text)
- uAnalytics :: Lens' URL (Maybe AnalyticsSummary)
- uLongURL :: Lens' URL (Maybe Text)
- uId :: Lens' URL (Maybe Text)
- data StringCount
- stringCount :: StringCount
- scCount :: Lens' StringCount (Maybe Int64)
- scId :: Lens' StringCount (Maybe Text)
- data URLListProjection
- data AnalyticsSnapshot
- analyticsSnapshot :: AnalyticsSnapshot
- asPlatforms :: Lens' AnalyticsSnapshot [StringCount]
- asShortURLClicks :: Lens' AnalyticsSnapshot (Maybe Int64)
- asReferrers :: Lens' AnalyticsSnapshot [StringCount]
- asCountries :: Lens' AnalyticsSnapshot [StringCount]
- asLongURLClicks :: Lens' AnalyticsSnapshot (Maybe Int64)
- asBrowsers :: Lens' AnalyticsSnapshot [StringCount]
- data AnalyticsSummary
- analyticsSummary :: AnalyticsSummary
- asWeek :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot)
- asAllTime :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot)
- asDay :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot)
- asTwoHours :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot)
- asMonth :: Lens' AnalyticsSummary (Maybe AnalyticsSnapshot)
- data URLGetProjection
- data URLHistory
- urlHistory :: URLHistory
- uhTotalItems :: Lens' URLHistory (Maybe Int32)
- uhNextPageToken :: Lens' URLHistory (Maybe Text)
- uhItemsPerPage :: Lens' URLHistory (Maybe Int32)
- uhKind :: Lens' URLHistory Text
- uhItems :: Lens' URLHistory [URL]
Service Configuration
uRLShortenerService :: Service 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 :: OAuthScope Source
Manage your goo.gl short URLs
URL
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.
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".
StringCount
data StringCount Source
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.
AnalyticsClicks |
|
Full |
|
AnalyticsSnapshot
data AnalyticsSnapshot Source
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
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.
UGPAnalyticsClicks |
|
UGPAnalyticsTopStrings |
|
UGPFull |
|
URLHistory
data URLHistory Source
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.