Jump to content

BadCase's PasteBin API


BadCase
 Share

Recommended Posts

BadCase's PasteBin API


Set these values at top of pasteBin table

    api_dev_key = "YOUR_API_DEV_KEY",
    api_user_name = "YOUR_USERNAME",
    api_user_password = "YOUR_PASSWORD",

 

Usage:

-- Upload with username
-- print(pasteBin.publishPaste(api_paste_code, api_paste_name, true))

-- Upload without username
--print(pasteBin.publishPaste(api_paste_code, api_paste_name, false))

-- List users pastes
--print(pasteBin.listPastes())

-- Delete a paste
-- print(pasteBin.deletePaste("Jef8vQcX")) -- replace "Jef8vQcX" with valid paste key from users paste

-- Get users info
-- print(pasteBin.getUser())

-- Get users private or public paste
-- print(pasteBin.getUserPasteRaw("zbEbNh2n")) -- replace "zbEbNh2n" with valid paste key from users paste

-- Get public or unlisted paste
-- print(pasteBin.getPasteRaw("zbEbNh2n")) -- replace "zbEbNh2n" with valid paste key
 


 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.