Upload files to "/"
This commit is contained in:
32
give.py
Normal file
32
give.py
Normal file
@@ -0,0 +1,32 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user