google apps script - gmail import gmail content to myapplications using javascript? -


i need in gmail content.

i created myapps

       client id: xxxxxxxx.apps.googleusercontent.com           email address:           765792474035@developer.gserviceaccount.com       client secret:           k2f2j0ffedat_edte0ateq3x       redirect uris:    http://localhost/       javascript origins:   http://localhost/ 

my javascript function

          $('.invitecontact-gmail').click(function(){            https: accounts.google.com/o/oauth2/auth?scope=htttp://ww.google.com/m8/feeds/redirect_uri=redirect_uri=http:///&response_type=token&client_id=xxxxxxxxx.apps.googleusercontent.com;  }); 

this link dipaly error: invalid_request redirect_uri:

how open google apps in localhost tried apps redirect_url put in localhost. same error comming

naybody plz me.

by comparing url example google developers - implementing oauth 2.0 authentication, handful of syntax errors , typos evident. since error message you've received complains redirect uri, should start getting right.

https: accounts.google.com/o/oauth2/auth?
scope=htttp://ww.google.com/m8/feeds/redirect_uri=redirect_uri=http:///& response_type=token& client_id=xxxxxxxxx.apps.googleusercontent.com;

the following syntactically correct (whitespace added readability):

https: accounts.google.com/o/oauth2/auth?   scope=http://www.google.com/m8/feeds/&                << check url   redirect_uri=<some-valid_uri>&                        << placeholder   response_type=token&   client_id=xxxxxxxxx.apps.googleusercontent.com; 

you need determine valid uri application, , replace placeholder. example, redirect_uri=http://localhost/oauth2callback.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -