我如何去特定用户的电子邮件收件箱或谷歌日历和所有其他谷歌应用程序

时间:2021-06-10 10:55:45

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

这是我的代码。

<!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>

enter image description here

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

我的问题是如何访问特定用户的电子邮件或日历。

提前致谢。

1 个答案:

答案 0 :(得分:0)

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

例如:

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 打开日历。

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

相关问题