· 6 years ago · Mar 05, 2020, 02:12 AM
1$api_dev_key = 'YOUR API DEVELOPER KEY';
2$api_user_key = '';
3$url = 'https://pastebin.com/api/api_raw.php';
4$ch = curl_init($url);
5
6curl_setopt($ch, CURLOPT_POST, true);
7curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=show_paste&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_paste_key=A_VALID_PASTE_KEY_HERE');
8curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
9curl_setopt($ch, CURLOPT_VERBOSE, 1);
10curl_setopt($ch, CURLOPT_NOBODY, 0);
11
12$response = curl_exec($ch);
13echo $response;