-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Express example? #263
Comments
The following example I made is really out of date but might give you a good starting point... In theory it used to work though it might require some tweaking to work now. See it here: https://github.com/ryanseys/google-api-test-app |
@newz2000 Let me know if this helps or if you have any other questions. I will be happy to help! |
@ryanseys thanks, it is helpful. I'm still working on getting it working, but it's a big nudge in the right direction. Sadly, my life is made complicated by being behind a proxy. I am going to try the code at home if I don't get it going at work, but for now I'm trying this (so far unsuccessfully) in routes/index.js:
I'll post details once I get it working. |
I've got it working, thanks! There are problems when working behind a proxy, I'll work them out later if I can and file a ticket if applicable. This example works pretty good. The only changes I had to make where adding the googleapis module to package.json and updating the require statement in routes/index.js and then updating app.use(session...) to get rid of some deprecation errors.
|
Sweet! Thanks for the update, I'll file an issue on my repo and make the appropriate changes when I have time. |
Or maybe I can propose a change. I have the diff right here... :-) |
Do it up! 😄 |
Hello, I've gotten the example code working but going from essentially "hello world" to being able to use this in a web app has proven too much of a challenge.
I've also searched the web for example apps using Express and google-api-nodejs-client and come up with nothing useful.
I'd really love for an example where you can view an app's home page, click an authorize/login button and view some information specific to that user. For example, view the last five files the user uploaded or last few posts to Google+ or similar.
Really, anything is useful. I've gotten apps working with Passport authentication, but that is different than authorizing an app to to use a Google API on the user's behalf.
Does anyone have time to document or create an example app that does this?
The text was updated successfully, but these errors were encountered: