32 lines
543 B
Python
32 lines
543 B
Python
import httpx
|
|
import json
|
|
|
|
|
|
playerids = []
|
|
|
|
gay = ""
|
|
|
|
with open(gay) as f:
|
|
gays = json.load(f)
|
|
|
|
datas = []
|
|
|
|
for x in playerids:
|
|
for i in gays:
|
|
value = {
|
|
"RoomKeyId": i["RoomKeyId"],
|
|
"AccountId": x
|
|
}
|
|
datas.append(value)
|
|
|
|
Authorization = ""
|
|
|
|
had = {
|
|
"Authorization": "Bearer " + Authorization,
|
|
"User-Agent": "RRStudio",
|
|
}
|
|
|
|
dd = httpx.post("https://econ.rec.net/api/roomkeys/v1/awardbulk", headers=had, json=datas)
|
|
|
|
print(dd.status_code)
|
|
print(dd.text) |