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
Recommended Comments
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now