如何在没有 0Auth2 的情况下实用地登录 gmail 帐户?

How do I sign into a gmail account pragmatically without 0Auth2?

所以我想做的是以编程方式登录 Gmail 帐户,而不是使用 0Auth2 登录用户帐户。我要做的是登录我设置的帐户,然后显示该电子邮件收件箱中的 link。我看了很多,但似乎找不到不显示任何内容或不使用 0Auth2 的方法。我已将 Google 的 Gmail API 安装到我的 Xcode 项目中。这是我看过的一些地方。

我认为没有 Oauth 就无法使用它,并且在 Gmail API documentation that all requests to the Gmail API must be authorized by an authenticated user and Gmail uses the OAuth 2.0 protocol for authenticating a Google account and authorizing access to user data. For more information, check this thread.

中有说明

如果您尝试创建一个仅使用特殊帐户登录 gmail 的应用程序,没有 oauth2 就无法完成,但您可以在此处查看 oauth2 场景 google oauth2 scenarios

在你的情况下,在我看来,server-to-server scenario 可以是一个解决方案