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

Request: more details on obtaining credentials #4

Open
simonw opened this issue Oct 27, 2020 · 6 comments
Open

Request: more details on obtaining credentials #4

simonw opened this issue Oct 27, 2020 · 6 comments

Comments

@simonw
Copy link

simonw commented Oct 27, 2020

The README currently says:

Google API credentials are required to create events in the calendar. You can obtain them here. Store credentials.json into a directory accessible by your code.

I couldn't figure out how to use the linked interface to obtain credentials.json file that I could use with this project.

@domenp
Copy link
Owner

domenp commented Oct 27, 2020

You need to obtain OAuth 2.0 client credentials from the Google API Console. More here.

Does that help?

@simonw
Copy link
Author

simonw commented Oct 29, 2020

Not really. I've been working with OAuth for 13 years and after 15 minutes of messing around in the console I still hadn't figured out how to get a calendar credential I could use with this tool!

Step by step instructions would be really useful. Google's documentation around this is not good enough, unfortunately.

@simonw
Copy link
Author

simonw commented Oct 29, 2020

I got a tip on Twitter that pointed me to https://michaelheap.com/google-oauth-with-node-js/ which looks like it might have enough information for me to get a token.

@domenp
Copy link
Owner

domenp commented Oct 29, 2020

Great, let me know if the linked instructions worked for you?

@simonw
Copy link
Author

simonw commented Oct 29, 2020

I'll try that today. Do you know if it's possible to get credentials without creating a new OAuth application?

@domenp
Copy link
Owner

domenp commented Oct 29, 2020

Don't know to be honest.

Believe the easiest way is to go via "Create credentials -> OAuth Client ID" workflow in Google API console. This does create a new OAuth app, I believe.

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