javascript - Node JS for Google Mirror API -


i trying implement oauth using node js glass mirror api amd found useful. in "app.js" file, need provide credentials of project created in google developer console.

i have client id, client secret not able define should callback url be? should in callback url script? logically understand there should program accepts token , runs further steps.

but how write one? kindly help. in advance

base on sample code link, callback url be

// running in localhost http://localhost/oauth2callback  // or running on server http://yourdomain.com/oauth2callback 

when google redirect oauth2callback, server code run redirect index page

grabtoken(req.query.code, failure, function () {     res.redirect('/'); }); 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -