pagespeedParseR icon indicating copy to clipboard operation
pagespeedParseR copied to clipboard

API connector fails

Open joggopops opened this issue 3 years ago • 1 comments

Hello.

I've been trying to connect from RStudio but it fails somehow.

My code looks like this: image

I've created the API key and the key works when I connect from Screaming Frog. But the console returns this: image

Can you please help?

joggopops avatar Sep 16 '21 11:09 joggopops

Just in case this could be useful, I found a temporary fix for this issue :

  • After loading the package, run the following command :

trace("auth_pagespeed", edit=TRUE)

  • Then, an editor should open where you need to replace the following command line
[url](https://rdrr.io/r/base/connections.html) = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed",
  • by
[url](https://rdrr.io/r/base/connections.html) = "https://www.googleapis.com/pagespeedonline/v5/runPagespeed",`

In fact, you simply need to replace "v4" by "v5".

Hope this helps.

mxcrml avatar Apr 16 '22 17:04 mxcrml