Conversaciones » Desarrolladores
Pastebin API: Bad API Request
The API doc page lists javascript = JavaScript
, not js
.
You forget to set the api_option=paste in params2. I also think you need to use encodeURIComponent() instead of encodeURI().
Ouch! Seems obvious now.
Thank you both. It works now :)
Pastebin API: Bad API Request
I am unable to get the script below to work. I am trying to paste code using the PasteBin API.
After acquiring a valid API_USER_KEY, pasteFile() is executed but I get "Bad API request, invalid api_option" onload. I am not sure what I am doing wrong.