Refresh docs
diff --git a/docs/dyn/pagespeedonline_v1.pagespeedapi.html b/docs/dyn/pagespeedonline_v1.pagespeedapi.html
index a8c12da..aa269a2 100644
--- a/docs/dyn/pagespeedonline_v1.pagespeedapi.html
+++ b/docs/dyn/pagespeedonline_v1.pagespeedapi.html
@@ -72,30 +72,51 @@
</style>
-<h1><a href="pagespeedonline_v1.html">Page Speed Online API</a> . <a href="pagespeedonline_v1.pagespeedapi.html">pagespeedapi</a></h1>
+<h1><a href="pagespeedonline_v1.html">PageSpeed Insights API</a> . <a href="pagespeedonline_v1.pagespeedapi.html">pagespeedapi</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
- <code><a href="#runpagespeed">runpagespeed(url, locale=None, rule=None, strategy=None)</a></code></p>
+ <code><a href="#runpagespeed">runpagespeed(url, screenshot=None, locale=None, rule=None, strategy=None, filter_third_party_resources=None)</a></code></p>
<p class="firstline">Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list of suggestions to make that page faster, and other information.</p>
<h3>Method Details</h3>
<div class="method">
- <code class="details" id="runpagespeed">runpagespeed(url, locale=None, rule=None, strategy=None)</code>
+ <code class="details" id="runpagespeed">runpagespeed(url, screenshot=None, locale=None, rule=None, strategy=None, filter_third_party_resources=None)</code>
<pre>Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list of suggestions to make that page faster, and other information.
Args:
url: string, The URL to fetch and analyze (required)
+ screenshot: boolean, Indicates if binary data containing a screenshot should be included
locale: string, The locale used to localize formatted results
rule: string, A Page Speed rule to run; if none are given, all rules are run (repeated)
strategy: string, The analysis strategy to use
Allowed values
desktop - Fetch and analyze the URL for desktop browsers
mobile - Fetch and analyze the URL for mobile devices
+ filter_third_party_resources: boolean, Indicates if third party resources should be filtered out before PageSpeed analysis.
Returns:
An object of the form:
{
+ "notice": "If you would like to use this API to perform programmatic PageSpeed analysis, please use your own PageSpeed Insights API key. See https://developers.google.com/speed/docs/insights/v1/getting_started for additional details.", # Notice to discourage users from reusing API keys.
+ "responseCode": 42, # Response code for the document. 200 indicates a normal page load. 4xx/5xx indicates an error.
+ "screenshot": { # Base64 encoded screenshot of the page that was analyzed.
+ "width": 42, # Width of screenshot in pixels.
+ "data": "A String", # Image data base64 encoded.
+ "mime_type": "A String", # Mime type of image data. E.g. "image/jpeg".
+ "height": 42, # Height of screenshot in pixels.
+ },
+ "title": "A String", # Title of the page, as displayed in the browser's title bar.
+ "version": { # The version of the Page Speed SDK used to generate these results.
+ "major": 42, # The major version number of the Page Speed SDK used to generate these results.
+ "minor": 42, # The minor version number of the Page Speed SDK used to generate these results.
+ },
+ "request": { # Echo of certain request parameters.
+ "url": "A String",
+ "filter_third_party_resources": "A String",
+ "strategy": "A String",
+ },
"kind": "pagespeedonline#result", # Kind of result.
+ "score": 42, # The Page Speed Score (0-100), which indicates how much faster a page could be. A high score indicates little room for improvement, while a lower score indicates more room for improvement.
"formattedResults": { # Localized Page Speed results. Contains a ruleResults entry for each Page Speed rule instantiated and run by the server.
"locale": "A String", # The locale of the formattedResults, e.g. "en_US".
"ruleResults": { # Dictionary of formatted rule results, with one entry for each Page Speed rule instantiated and run by the server.
@@ -143,13 +164,6 @@
},
},
},
- "title": "A String", # Title of the page, as displayed in the browser's title bar.
- "version": { # The version of the Page Speed SDK used to generate these results.
- "major": 42, # The major version number of the Page Speed SDK used to generate these results.
- "minor": 42, # The minor version number of the Page Speed SDK used to generate these results.
- },
- "score": 42, # The Page Speed Score (0-100), which indicates how much faster a page could be. A high score indicates little room for improvement, while a lower score indicates more room for improvement.
- "responseCode": 42, # Response code for the document. 200 indicates a normal page load. 4xx/5xx indicates an error.
"invalidRules": [ # List of rules that were specified in the request, but which the server did not know how to instantiate.
"A String",
],