0
你好荫尝试使用http://paste.kde.org API,以使其工作 我的代码看起来像jQuery的阿贾克斯paste.kde.org
var p = {};
p.id=122083;
p.mode='json';
$.ajax({
url: 'http://paste.kde.org/show.php',
data: p,
success: function(data) {
alert(data.result.id);
}
});
输出JSON是这样的:
{ "result": { "id": "122083", "author": "Anonymous", "timestamp": "1316135671", "language": "text", "data": "testing the app" } }
但我不能让它工作,我也没有警报创建“粘贴”,虽然我可以看到它们在paste.kde.org存档中创建
当然,我可以做到这一点,但我只需要使用客户端服务器技术,因为我可以看到我认为我可以使用此api,通过粘贴创建 – Theodore
我打算发布更新版本的pastebin( v1.0)很快。在将paste.kde.org移动到新版本之前,我会尝试添加此功能。 –