Advertisement
MCFunRide

FusionCoins - API

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