Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class = assert(loadfile("pastebin_obj"))
- class()
- Object = Pastebin:new("api dev key")
- if Object:login("user name","user password") then
- print("Logged in!")
- else
- print("Login Failure")
- end
- local sPaste = Object:get_raw("EdSNvK8t")
- print(sPaste)
- local paste_code = "This is my third paste. My program made this paste directly from CraftOS. Yay!"
- local paste_name = "This is the third paste, and the first from the program."
- local paste_format = "text"
- local paste_loc = ""
- paste_loc = Object:put(paste_code,paste_name,paste_format)
- print("Paste successful. Paste can be found at "..paste_loc)
Advertisement
Add Comment
Please, Sign In to add comment