Advertisement
MCFunRide

CubeCoins - API

Oct 4th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. function login(name,pass)
  2. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=login&user="..name.."&pass="..pass)
  3. local erg = stream.readAll()
  4. stream.close()
  5. if erg == "true" then
  6. return true
  7. else
  8. return false
  9. end
  10. end
  11.  
  12. function create(name,pass)
  13. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=create&user="..name.."&pass="..pass)
  14. local erg = stream.readAll()
  15. stream.close()
  16. if erg == "Success!" then
  17. return true
  18. else
  19. return false
  20. end
  21. end
  22.  
  23. function newpass(name,oldpass,newpass)
  24. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=newpass&user="..name.."&oldpass="..oldpass.."&pass="..newpass)
  25. local erg = stream.readAll()
  26. stream.close()
  27. return erg
  28. end
  29.  
  30. function delete(name,pass)
  31. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=delete&user="..name.."&pass="..pass)
  32. local erg = stream.readAll()
  33. stream.close()
  34. return erg
  35. end
  36.  
  37. function getBalance(name)
  38. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=getBalance&user="..name)
  39. local erg = stream.readAll()
  40. stream.close()
  41. return erg
  42. end
  43.  
  44. function transaction(user,pass,to,amt)
  45. local stream = http.get("http://cubespacenetwork.hostei.net/user.php?action=transaction&user="..user.."&pass="..pass.."&to="..to.."&amt="..amt)
  46. local erg = stream.readAll()
  47. stream.close()
  48. return erg
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement