Advertisement
Guest User

SantioPastebinCode

a guest
Mar 30th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. h = game:GetService'HttpService'
  2. api_dev_key = '' --Your Pastebin developer key goes here. Log in first, and then you can find it at pastebin.com/api
  3. api_paste_code = '' --The content of your new paste
  4. api_paste_private = '1' --0 public; 1 unlisted; 2 private
  5. api_paste_name = '' --Name your new paste
  6. api_paste_expire_date = 'N' --N for never expire, 10M for 10 minutes, etc.
  7. api_paste_format = 'lua' --The syntax highlighting
  8. api_user_key = '' --This is generated using the login info
  9. api_paste_name = h:UrlEncode(api_paste_name)
  10. api_paste_code = h:UrlEncode(api_paste_code)
  11. username = '' --Your Pastebin username goes here
  12. password = '' --Your Pastebin password goes here
  13.  
  14. api_user_key = h:PostAsync(
  15. 'http://pastebin.com/api/api_login.php',
  16. 'api_dev_key=' .. api_dev_key .. '&api_user_name=' .. username .. '&api_user_password=' .. password,
  17. 2
  18. )
  19. print(api_user_key) --DON'T DELETE THIS! IT IS ESSENTIAL FOR THE USER KEY TO BE GENERATED!
  20. h:PostAsync(
  21. 'http://pastebin.com/api/api_post.php',
  22. 'api_option=paste&api_user_key=' .. api_user_key .. '&api_paste_private=' .. api_paste_private .. '&api_paste_name=' .. api_paste_name .. '&api_paste_expire_date=' .. api_paste_expire_date .. '&api_paste_format=' .. api_paste_format .. '&api_dev_key=' .. api_dev_key .. '&api_paste_code=' .. api_paste_code,
  23. 2
  24. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement