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

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

问题描述

如果您登录了多个Gmail帐户,Google会更改这些网址以引用您目前使用的帐户。例如:

https://mail.google.com/mail/u/0/#inbox/138d85da096d2126 对于我的主帐户中的convo vs
https://mail.google.com/mail/u/1/#inbox/128cfe99d055805d 另一个帐户。



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



我的问题是:因为我使用Gmail REST API来查找ID一个特定的线程,我怎样才能可靠地链接到该线程?有没有什么程序化的方法可以让Google询问用户登录哪个帐户,以及每个帐户的顺序(0,1,2,...)?

解决方案

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



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


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

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

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?

解决方案

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天全站免登陆