如果用户登录到多个帐户,我如何可靠地链接到给定线程 ID 的 Gmail 对话? [英] How can I reliably link to a Gmail conversation given a thread ID if the user is logged into multiple accounts?

查看:17
本文介绍了如果用户登录到多个帐户,我如何可靠地链接到给定线程 ID 的 Gmail 对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您登录了多个 Gmail 帐户,Google 会更改 URL 以引用您当前使用的帐户.例如:

If you're logged into multiple Gmail accounts, Google changes the URLs to reference which account you're currently using. For example:

https://mail.google.com/mail/u/0/#inbox/138d85da096d2126 用于我的主要帐户中的对话 vshttps://mail.google.com/mail/u/1/#inbox/128cfe99d055805d 在我的另一个帐户中进行对话.

https://mail.google.com/mail/u/0/#inbox/138d85da096d2126 for a convo in my primary account vs https://mail.google.com/mail/u/1/#inbox/128cfe99d055805d for a convo in another one of my accounts.

请注意,一个帐户在 URL 中有 /u/0,另一个帐户有 u/1.

Note that one account has /u/0 in the URL and the other has u/1.

我的问题是:鉴于我已使用 Gmail REST API 查找特定线程的 ID,我如何可靠地链接到该线程?是否有任何编程方式可以询问 Google 用户登录了哪些帐户,以及每个帐户属于哪个序列(0、1、2、...)?

My question is: given that I've used the Gmail REST API to find the ID of a particular thread, how can I reliably link to that thread? Is there any programmatic way to ask Google which accounts the user is logged into, and what sequence (0, 1, 2, ...) each account falls under?

推荐答案

看起来您可以包含一个名为 authUser 的查询参数,用于指定要链接到的电子邮件帐户:

Looks like you can include a query parameter called authUser that specifies the email account you want to link to:

https://mail.google.com/mail/?authuser=your.email.address@gmail.com#all/138d85da096d2126

这篇关于如果用户登录到多个帐户,我如何可靠地链接到给定线程 ID 的 Gmail 对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆