Jump to content

BadCase's PasteBin API 1.0.1

   (0 reviews)

1 Screenshot

About This File

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:

--  api_paste_format https://pastebin.com/doc_api#5
--  api_paste_expire_date https://pastebin.com/doc_api#6
--  api_paste_private https://pastebin.com/doc_api#7

-- Upload with username pasteBin.publishPaste(api_paste_code, api_paste_name, postAsUser, api_paste_private,api_paste_expire_date,api_paste_format)
-- print(pasteBin.publishPaste(api_paste_code, api_paste_name, true,"2","N","lua"))

-- Upload without username pasteBin.publishPaste(api_paste_code, api_paste_name, postAsUser, api_paste_private,api_paste_expire_date,api_paste_format)
--print(pasteBin.publishPaste(api_paste_code, api_paste_name, false,"0", "N","lua"))

-- 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
 

Edited by BadCase


What's New in Version 1.0.1   See changelog

Released

Added additional variables for creating pastes

--  api_paste_format https://pastebin.com/doc_api#5
--  api_paste_expire_date https://pastebin.com/doc_api#6
--  api_paste_private https://pastebin.com/doc_api#7

 Share


User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

×
×
  • 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.