写信给 Pastie 或 Pastebin?
我正在用 Objective-C (iPhone) 编写一个应用程序,我希望能够向 Pastie 或 Pastebin 写入一串文本,并能够获得该页面的链接。 我没有找到任何 API,这可能吗? 如何?
I have an application I'm writing, in Objective-C (iPhone), and I want to be able to write a string of text to Pastie or Pastebin, and be able to have the link to that page. I have not been able to find any API for either of these, is this possible? How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是他们的pastebin.com API:http://pastebin.com/api
This is their API for pastebin.com: http://pastebin.com/api
您必须使用 html 页面上
对于pastebin.com,它可能是
parent_pid
、format
、code2
和poster
。只需确保该网站的所有者对您的程序以这种方式访问该网站没有任何问题。
You will have to construct a HTTP POST request with the fields as described in the
<form>
tag on the html page.for pastebin.com it would probably be
parent_pid
,format
,code2
andposter
.Just make sure that the owner of the site doesn't have any problems with your program accessing it this way.