DeaD_EyE

gslt

Mar 24th, 2020
225
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. # https://steamapi.xpaw.me/#ISteamWebAPIUtil/GetSupportedAPIList
  3.  
  4. KEY = "xxxxxxxxxxxx"
  5. # https://steamcommunity.com/dev/apikey
  6.  
  7. def get():
  8.     req = requests.get("https://api.steampowered.com/IGameServersService/GetAccountList/v1/", params={"key": KEY})
  9.     return req.json()
  10.  
  11. def delete(steamid, int):
  12.     params = {"key": KEY, "steamid": steamid}
  13.     req = requests.post("https://api.steampowered.com/IGameServersService/DeleteAccount/v1/", params=params)
  14.     return req.json()
  15.  
  16. def create(appid: int, memo: str):
  17.     params = {"key": KEY, "appid": appid, "memo": memo}
  18.     req = requests.post("https://api.steampowered.com/IGameServersService/CreateAccount/v1/", params=params)
  19.     return req.json()
  20.    
  21. def query(login_token: str):
  22.     params = {"key": KEY, "login_token": login_token}
  23.     req = requests.get("https://api.steampowered.com/IGameServersService/QueryLoginToken/v1/", params=params)
  24.     return req.json()
  25.  
  26. def reset_login_token(steamid, int):
  27.     params = {"key": KEY, "steamid": steamid}
  28.     req = requests.post("https://api.steampowered.com/IGameServersService/ResetLoginToken/v1/", params=params)
  29.     return req.json()
RAW Paste Data