我知道如何使用 pastebin API 生成用户 key ,但如何使用此用户 key 访问原始私有(private)粘贴?
我为此使用 Lua。
最佳答案
获取原始粘贴箱输出不是 Pastebin API 的一部分。 :
This option is actually not part of our API, but you might still want to use it. To get the RAW output of a paste you can use our RAW data output URL:
http://pastebin.com/raw.php?i=
Simply add the paste_key at the end of that URL and you will get the RAW output.
由于私有(private)粘贴只能由创建它们的用户看到,我猜他们使用 logincookie 进行身份验证。在这种情况下,您需要将其与 HTTP 请求一起发送。
关于在 Lua 中实现这一点,(因为你还没有说你正在使用哪个库)我要去推荐 HTTP module在 LuaSocket 或美妙的 Luvit (http://luvit.io) 中。
关于lua - 如何从 pastebin 访问原始私有(private)粘贴?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13223953/