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 |
Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens.
See: Firebase Dynamic Links API Reference for firebasedynamiclinks.getLinkStats
.
Synopsis
- type GetLinkStatsResource = "v1" :> (Capture "dynamicLink" Text :> ("linkStats" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "sdkVersion" Text :> (QueryParam "durationDays" (Textual Int64) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] DynamicLinkStats))))))))))
- getLinkStats :: Text -> GetLinkStats
- data GetLinkStats
- glsXgafv :: Lens' GetLinkStats (Maybe Xgafv)
- glsUploadProtocol :: Lens' GetLinkStats (Maybe Text)
- glsDynamicLink :: Lens' GetLinkStats Text
- glsAccessToken :: Lens' GetLinkStats (Maybe Text)
- glsUploadType :: Lens' GetLinkStats (Maybe Text)
- glsSdkVersion :: Lens' GetLinkStats (Maybe Text)
- glsDurationDays :: Lens' GetLinkStats (Maybe Int64)
- glsCallback :: Lens' GetLinkStats (Maybe Text)
REST Resource
type GetLinkStatsResource = "v1" :> (Capture "dynamicLink" Text :> ("linkStats" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "sdkVersion" Text :> (QueryParam "durationDays" (Textual Int64) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] DynamicLinkStats)))))))))) Source #
A resource alias for firebasedynamiclinks.getLinkStats
method which the
GetLinkStats
request conforms to.
Creating a Request
Creates a value of GetLinkStats
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetLinkStats Source #
Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens.
See: getLinkStats
smart constructor.
Instances
Request Lenses
glsUploadProtocol :: Lens' GetLinkStats (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
glsDynamicLink :: Lens' GetLinkStats Text Source #
Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz
glsAccessToken :: Lens' GetLinkStats (Maybe Text) Source #
OAuth access token.
glsUploadType :: Lens' GetLinkStats (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
glsSdkVersion :: Lens' GetLinkStats (Maybe Text) Source #
Google SDK version. Version takes the form "major.minor.$patch"
glsDurationDays :: Lens' GetLinkStats (Maybe Int64) Source #
The span of time requested in days.
glsCallback :: Lens' GetLinkStats (Maybe Text) Source #
JSONP