fork download
  1. $api_dev_key = 'dPszbjkuQfdQrxHXnPkYPLoPZP-jokIl'; // your api_developer_key
  2. $api_paste_code = 'just some random text you :)'; // your paste text
  3. $api_paste_private = '1'; // 0=public 1=unlisted 2=private
  4. $api_paste_name = 'justmyfilename.php'; // name or title of your paste
  5. $api_paste_expire_date = '10M';
  6. $api_paste_format = 'php';
  7. $api_user_key = ''; // if an invalid or expired api_user_key is used, an error will spawn. If no api_user_key is used, a guest paste will be created
  8. $api_paste_name = urlencode($api_paste_name);
  9. $api_paste_code = urlencode($api_paste_code);
  10.  
  11. $url = 'https://p...content-available-to-author-only...n.com/api/api_post.php';
  12. $ch = curl_init($url);
  13.  
  14. curl_setopt($ch, CURLOPT_POST, true);
  15. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  18. curl_setopt($ch, CURLOPT_NOBODY, 0);
  19.  
  20. $response = curl_exec($ch);
  21. echo $response;
Success #stdin #stdout 0.03s 25844KB
stdin
Standard input is empty
stdout
$api_dev_key 			= 'dPszbjkuQfdQrxHXnPkYPLoPZP-jokIl'; // your api_developer_key
$api_paste_code 		= 'just some random text you :)'; // your paste text
$api_paste_private 		= '1'; // 0=public 1=unlisted 2=private
$api_paste_name			= 'justmyfilename.php'; // name or title of your paste
$api_paste_expire_date 		= '10M';
$api_paste_format 		= 'php';
$api_user_key 			= ''; // if an invalid or expired api_user_key is used, an error will spawn. If no api_user_key is used, a guest paste will be created
$api_paste_name			= urlencode($api_paste_name);
$api_paste_code			= urlencode($api_paste_code);

$url 				= 'https://p...content-available-to-author-only...n.com/api/api_post.php';
$ch 				= curl_init($url);

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_NOBODY, 0);

$response  			= curl_exec($ch);
echo $response;