1

我正在尝试使用 Instapaper 的简单 API (http://www.instapaper.com/api/simple)。

API 使用条款 (http://www.instapaper.com/api/terms) 说应用程序不应该存储用户 ID 和密码,我也不想存储它们。然而,似乎通过简单的 API 向用户的 Instapaper 添加链接的唯一方法是存储用户名/密码(如果用户确实有密码)。

我错过了什么吗?

4

2 回答 2

0

The API terms of use state that:

Apps must not store users’ passwords. Passwords may only be collected for the xAuth token acquisition and must be discarded afterward.

Only the full API uses xAuth tokens. The above sentence doesn't apply to the simple API, since it uses Basic HTTP Authentication.

You still "must make reasonable efforts to prevent passwords from being compromised, and must not disclose passwords to any other services or individuals".

于 2012-07-30T14:32:27.940 回答
0

如果您使用的是本地 Mac 应用程序(如 Apple 的邮件客户端或第三方邮件客户端,如 Airmail),则没有一种简单的方法来保存到 Instapaper 的链接,而无需先在浏览器中打开链接,然后使用 Instapaper 的其中一个浏览器扩展来实际保存文章。

我发现加快此任务的一种解决方法是为 OS X 编写一个服务,该服务使用 Instapaper 的 API 来保存链接。

为了编写自己的服务,首先打开 Apple 的 Automator 应用程序并创建一个新服务。然后,将 Run Shell Script 操作拖到应用程序的主工作流区域。

确保服务不接收任何输入,任何应用程序都可以使用,并且 shell 脚本设置为运行 python。

于 2020-08-19T14:05:18.497 回答