gogol-pagespeed-0.0.1: Google PageSpeed Insights SDK.

Copyright(c) 2015 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.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Contents

Description

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

REST Resource

type PagespeedAPIRunPagespeedResource = "pagespeedonline" :> ("v2" :> ("runPagespeed" :> (QueryParam "url" Text :> (QueryParam "screenshot" Bool :> (QueryParam "locale" Text :> (QueryParam "filter_third_party_resources" Bool :> (QueryParam "strategy" PagespeedAPIRunPagespeedStrategy :> (QueryParams "rule" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Result))))))))) 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.

Request Lenses

parpScreenshot :: Lens' PagespeedAPIRunPagespeed Bool Source

Indicates if binary data containing a screenshot should be included

parpLocale :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source

The locale used to localize formatted results

parpURL :: Lens' PagespeedAPIRunPagespeed Text Source

The URL to fetch and analyze

parpFilterThirdPartyResources :: Lens' PagespeedAPIRunPagespeed Bool Source

Indicates if third party resources should be filtered out before PageSpeed analysis.

parpRule :: Lens' PagespeedAPIRunPagespeed [Text] Source

A PageSpeed rule to run; if none are given, all rules are run