【问题标题】:How can i go specific user email inbox or google calendar and all other google application我如何去特定用户的电子邮件收件箱或谷歌日历和所有其他谷歌应用程序
【发布时间】:2021-08-27 09:05:18
【问题描述】:

这是我的代码。

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>repl.it</title>
  <link href="style.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
   <script src="script.js"></script>
   <a href="https://mail.google.com" target="_blank">go email</a>
   <br><br>
   <a href="https://calendar.google.com/" target="_blank">go calendar</a>
 </body>
</html>

但是当我点击这两个链接时,服务器会在默认电子邮件收件箱和谷歌日历(在我的浏览器中设置)上重定向我。而且我在我的 chrome 浏览器中有多个用户登录。所以我想去特定的用户电子邮件地址。

我的问题是我怎样才能访问特定用户的电子邮件或日历。

提前致谢。

【问题讨论】:

    标签: javascript html ruby-on-rails google-chrome email


    【解决方案1】:

    当您更改帐户时,您可以看到 google 也更改了 url 中的一部分。

    例如:

    https://calendar.google.com/calendar/u/0/r
    

    更改为

    https://calendar.google.com/calendar/u/1/r
    

    ID(0、1)似乎是您登录的顺序。

    我尝试了用电子邮件替换此 ID 时会发生什么。而且它似乎有效。

    https://calendar.google.com/calendar/u/me@gmail.com
    

    为用户me@gmail.com打开日历。

    注意:我没有找到任何官方文档等描述这一点。所以也许这对你有用。当然,谷歌可以随时更改此设置。我不会依赖它,也不会在生产中使用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-01
      • 1970-01-01
      相关资源
      最近更新 更多