通过Google API直接链接到Gmail邮件 [英] Get direct link to gmail message via Google API

查看:112
本文介绍了通过Google API直接链接到Gmail邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Google API获取邮件的链接?可以将消息ID以某种方式转换为可以在浏览器中打开的直接链接?

Is it possible to get the link to the message using Google API? Can message id be translated somehow to direct link which can be opened in browser?

推荐答案

您可以使用URL https://mail.google.com/mail/#inbox/messageId 。但是你应该可以访问这条消息。但这个网址是由Gmail用户界面生成的,而不是通过API生成所以,你必须在你的程序中创建上面的URL

You can try with URL https://mail.google.com/mail/#inbox/messageId. But you should have access to this message. But this URL is generated by Gmail UI not with API. So, you have to create the above URL in your program

这篇关于通过Google API直接链接到Gmail邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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