如何在 Meteor 中为单个固定帐户调用 Oauth API

How to call Oauth APIs in Meteor for a single fixed account

我有兴趣找到通过使用 Oauth 的 Meteor 调用 API 的最简单解决方案,例如 google APIs。它是为单个固定帐户提取数据,而不是与已登录的用户帐户相关。

我找到了以下参考资料 - http://blog.philcruz.com/2015/05/manually-getting-oauth-tokens-in-meteor.html

但我想知道这是否比需要的更复杂?非常感谢任何指向参考或示例代码的指针!

Oauth 并不简单,因此您提供的 link 看起来并不比要求的更复杂。

然而,该工作流是经典的 Oauth 场景,as defined here

OAuth is an authentication protocol that allows users to approve application to act on their behalf without sharing their password.].

这不是您的要求。

首先检查您是否可以使用 Simple API access as defined here.

如果没有,请查看这些软件包:

我从来没有用过,但它们似乎可以满足您的要求。