I need some help with http api:
How to post something to pastebin using http API, not shell.run('pastebin put…
Also, main thing is that, if I need to know the pastebin code of uploaded file.
Thanks!
edit rom/programs/pastebin
well yes and no. last I checked they didn't give a definitive list of errors/problems that can be returned as content. it's very annoying!They have a well documented api, and I use it for SmartPaste.
Sure it does:well yes and no. last I checked they didn't give a definitive list of errors/problems that can be returned as content. it's very annoying!
Bad API request, invalid api_option
Bad API request, invalid api_dev_key
Bad API request, IP blocked
Bad API request, maximum number of 25 unlisted pastes for your free account
Bad API request, maximum number of 10 private pastes for your free account
Bad API request, api_paste_code was empty
Bad API request, maximum paste file size exceeded
Bad API request, invalid api_expire_date
Bad API request, invalid api_paste_private
Bad API request, invalid api_paste_format
nah there's more than just those though. there's the captcha errors, and max pastes for IPs, and a few others like that. I've had a few on some servers where the pastebin program will say it has worked, and the contents of the file (or the uploaded as code) is the error message.-snip-