-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant seem to get auto google sheets upload to work #167
Comments
Hi. Looks like you generated wrong client secret.
Yes it is) Here's format of mine
|
@denar90 this format works Seems its not clear from the docs so thats where the confusion lies - Ill throw up a PR |
Cool 👍 I'd like to merge your PR ;) |
Pretty sure this is a bug
In the google sheets setup here:
https://github.com/paulirish/pwmetrics#defining-submit
It says "Take a client_secret and put it into the config as value of clientSecret property." - not sure what this means exactly.
I have downloaded the JSON file from google sheets api setup - thats in the format:
Does it mean just grabbing this object and putting it into
pwmetrics-config.js
clientSecret
property ?I have tried this with example config here:
But this doesnt work - I get error:
Seems that the code here:
pwmetrics/lib/oauth/google-oauth.ts
Line 45 in 1f70ee3
Seems incorrect as it checks for an "installed" property ?
I can fix this up but not sure if this property is there for a reason?
Also seems you need to configure a redirect uri in order for oauth.
Is there any way to setup with a service account so that this manual step is not required?
I would like for this sheets api integration to be part of CI - I can see there is an example to integrate puppeteer to do the login but this seems a bit clunky: googleapis/google-auth-library-nodejs#265
The text was updated successfully, but these errors were encountered: