· 6 years ago · Nov 25, 2019, 01:22 PM
1$api_dev_key = 'YOUR API DEVELOPER KEY';
2$api_user_key = '';
3$api_paste_key = '';
4$url = 'https://pastebin.com/api/api_post.php';
5$ch = curl_init($url);
6
7curl_setopt($ch, CURLOPT_POST, true);
8curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=delete&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_paste_key='.$api_paste_key.'');
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
10curl_setopt($ch, CURLOPT_VERBOSE, 1);
11curl_setopt($ch, CURLOPT_NOBODY, 0);
12
13$response = curl_exec($ch);
14echo $response;