PasteLib – Pastebin.com API Class (Miscellaneous)

With PasteLib you get a full-featured, ready-to-use Pastebin.com API Class, which supports all public API functions.

It takes care of building up the required and optional request parameters, checks if your inputs are valid and even converts the APIs XML responses to handy associative arrays!

You are able to create new Pastes as logged-in user or as a guest, list and delete a users Pastes and retrieve various account information.

All you need is your Pastebin.com Developer Key. Get it on: pastebin.com/api#1

Requirements

  • PHP 5 or above
  • cURL PHP extension

You can view the whole documentation as an Online-Version!

Example:

require_once('pastelib.class.php');

//Create new instance
$PasteLib = new PasteLib('yourdeveloperkey');

//Login the user
$PasteLib->login('username', 'userpassword');

//Your ready to go!
print_r($DropLib->listPastes());

Download PasteLib – Pastebin.com API Class (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *