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 |
Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.
See: PageSpeed Insights API Reference for pagespeedonline.pagespeedapi.runpagespeed
.
Synopsis
- type PagespeedAPIRunPagespeedResource = "pagespeedonline" :> ("v5" :> ("runPagespeed" :> (QueryParam "url" Text :> (QueryParam "utm_campaign" Text :> (QueryParam "locale" Text :> (QueryParams "category" PagespeedAPIRunPagespeedCategory :> (QueryParam "strategy" PagespeedAPIRunPagespeedStrategy :> (QueryParam "utm_source" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] PagespeedAPIPagespeedResponseV5)))))))))
- pagespeedAPIRunPagespeed :: Text -> PagespeedAPIRunPagespeed
- data PagespeedAPIRunPagespeed
- parpUtmCampaign :: Lens' PagespeedAPIRunPagespeed (Maybe Text)
- parpLocale :: Lens' PagespeedAPIRunPagespeed (Maybe Text)
- parpCategory :: Lens' PagespeedAPIRunPagespeed [PagespeedAPIRunPagespeedCategory]
- parpURL :: Lens' PagespeedAPIRunPagespeed Text
- parpStrategy :: Lens' PagespeedAPIRunPagespeed (Maybe PagespeedAPIRunPagespeedStrategy)
- parpUtmSource :: Lens' PagespeedAPIRunPagespeed (Maybe Text)
REST Resource
type PagespeedAPIRunPagespeedResource = "pagespeedonline" :> ("v5" :> ("runPagespeed" :> (QueryParam "url" Text :> (QueryParam "utm_campaign" Text :> (QueryParam "locale" Text :> (QueryParams "category" PagespeedAPIRunPagespeedCategory :> (QueryParam "strategy" PagespeedAPIRunPagespeedStrategy :> (QueryParam "utm_source" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] PagespeedAPIPagespeedResponseV5))))))))) Source #
A resource alias for pagespeedonline.pagespeedapi.runpagespeed
method which the
PagespeedAPIRunPagespeed
request conforms to.
Creating a Request
pagespeedAPIRunPagespeed Source #
Creates a value of PagespeedAPIRunPagespeed
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PagespeedAPIRunPagespeed Source #
Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.
See: pagespeedAPIRunPagespeed
smart constructor.
Instances
Request Lenses
parpUtmCampaign :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source #
Campaign name for analytics.
parpLocale :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source #
The locale used to localize formatted results
parpCategory :: Lens' PagespeedAPIRunPagespeed [PagespeedAPIRunPagespeedCategory] Source #
A Lighthouse category to run; if none are given, only Performance category will be run
parpStrategy :: Lens' PagespeedAPIRunPagespeed (Maybe PagespeedAPIRunPagespeedStrategy) Source #
The analysis strategy (desktop or mobile) to use, and desktop is the default
parpUtmSource :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source #
Campaign source for analytics.