Good,
I am trying to use jQuery $ .post with the PasteBin API to create a PasteBin page and grab the url (which the API says it is returning). Here is my code:
$('#send_code').click(function(){ $.post('http://pastebin.com/api_public.php', { paste_name: $('#paste_name').val(), paste_code: $('#paste_code').val() }, function(data){ alert(data); }); }
The above script creates the page just fine (I can find them on the PasteBin). However, all that is returned is an empty string. I tried using the same API with php and cURL and I can get the url just fine. Can anyone see me doing something wrong? Thanks!
source share