Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $api_dev_key = 'ca52e59436a8ff7b2ee7849e7d01b1fb'; $api_user_key = '2b141e34af685fa38d9856f4cb080873'; $api_results_limit = '100'; $url = 'http://pastebin.com/api/api_post.php'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=list&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_results_limit='.$api_results_limit.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_NOBODY, 0); $response = curl_exec($ch); echo $response;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment