lua - 如何从 pastebin 访问原始私有(private)粘贴?

标签 lua pastebin

我知道如何使用 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/

相关文章:

Lua string.format %c 与 string.char

lua - 无法从 NodeMCU 板连接到 Wi-Fi 网络

MYSQL - 选择和解析

python - Pastebin API : Getting Unlisted Paste Always

api - 我是否应该信任使用 GET 方法进行用户身份验证的 API?

node.js - 使用请求模块在 Node.js 中发送 URL 编码的参数

lua - 关于lua corountine的resume和yield函数的困惑

lua - 在我的 CentOS 机器上找不到 wireshark init.lua

http - 通过 API 编辑现有的 Pastebin 文档

c++ - 尝试使用 Qt 访问 Pastebin 时连接超时