Google apps script gmail使用javascript将gmail内容导入MyApplication?
我需要帮助在gmail获取内容 我创建了我的应用程序Google apps script gmail使用javascript将gmail内容导入MyApplication?,google-apps-script,Google Apps Script,我需要帮助在gmail获取内容 我创建了我的应用程序 Client ID: XXXXXXXX.apps.googleusercontent.com Email address: 765792474035@developer.gserviceaccount.com Client secret: k2f2j0fFEdAt_EDTE0ATeQ3x Redirect URIs: http://loca
Client ID: XXXXXXXX.apps.googleusercontent.com
Email address:
765792474035@developer.gserviceaccount.com
Client secret:
k2f2j0fFEdAt_EDTE0ATeQ3x
Redirect URIs: http://localhost/
JavaScript origins: http://localhost/
我的javascript函数
$('.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;
});
此链接重复错误:无效的\u请求
重定向\u uri:
如何在localhost中打开google应用程序
我尝试将我的应用重定向到localhost中的url。
同样的错误也发生了
不,请帮帮我 通过将您的URL与中的示例进行比较,可以发现一些语法错误和打字错误。由于您收到的错误消息抱怨重定向uri,您应该从正确开始 https:accounts.google.com/o/oauth2/auth?
scope=htttp://ww。google.com/m8/feeds/redirect\u uri=redirect\u uri=
http://
&
响应类型=令牌&
client_id=XXXXXXXXX.apps.googleusercontent.com
以下内容在语法上是正确的(为便于阅读,添加了空格):
https:accounts.google.com/o/oauth2/auth?
范围=http://www.google.com/m8/feeds/&
https: accounts.google.com/o/oauth2/auth?
scope=http://www.google.com/m8/feeds/& << Check this URL
redirect_uri=<SOME-VALID_URI>& << Placeholder
response_type=token&
client_id=XXXXXXXXX.apps.googleusercontent.com;