PasteBin API

Download File SKU: https://gameguardian.net/forum/files/file/3406-badcases-pastebin-api/ Category:

Description

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

Reviews

There are no reviews yet.

Be the first to review “PasteBin API”

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