Skip to content
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

Credentials setup #18

Open
drupov opened this issue Dec 20, 2021 · 1 comment
Open

Credentials setup #18

drupov opened this issue Dec 20, 2021 · 1 comment

Comments

@drupov
Copy link

drupov commented Dec 20, 2021

Hey, I am having issues with setting up credentials.

The README states

// The credentials are only needed when you need to be authenticated to read the document.

so my hope was that it would be enough to make the spreadsheet publicly available via the "Share document"-UI of Google Spreadsheets itself:

image

But I get an Error: The request is missing a valid API key.

If an API key is needed indeed - can someone point me to some docs on how to create one and how to use it in options.credentials in "gatsby-source-google-spreadsheet"

Thanks

@doublejosh
Copy link

You need to...

  1. Switch on the Sheets API in the Google Console
  2. Create a service account in the Google Console
  3. Invite the service account to the sheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants