61 lines
1.8 KiB
Python
61 lines
1.8 KiB
Python
"""
|
|
|
|
|
|
|
|
|
|
headers:
|
|
- csrf-token
|
|
- x-bound-auth* (optional)
|
|
cookies: probably .roblosecurity
|
|
|
|
https://apis.roblox.com/cloud/v2/avatar-marketplace-orders?idempotencyKey.key=35440611-15f9-4986-a2dc-1fe7f0a8f697
|
|
|
|
{
|
|
"purchasingUser": "users/1337",
|
|
"context": {
|
|
"productSurface": "SHOPPING_CART_WEB"
|
|
},
|
|
"fulfillmentGroups": [{
|
|
"strategy": "BEST_EFFORT",
|
|
"lineItems": [{
|
|
"collectibleProductId": "1741e256-ae5b-4bf5-aef2-f6f5f3436e57",
|
|
"agreedPriceRobux": 0
|
|
}]
|
|
}]
|
|
}
|
|
"""
|
|
import uuid
|
|
|
|
import requests
|
|
|
|
from methods.base import Purchaser
|
|
|
|
p = Purchaser(roblosecurity="")
|
|
|
|
r = p.request(url=f"https://apis.roblox.com/cloud/v2/avatar-marketplace-orders?idempotencyKey.key={str(uuid.uuid4())}",
|
|
method=requests.post)
|
|
r = p.request(url=f"https://apis.roblox.com/cloud/v2/avatar-marketplace-orders?idempotencyKey.key={str(uuid.uuid4())}",
|
|
method=requests.post,
|
|
headers={**r.headers, **{
|
|
"Roblox-Place-Id": "124180448122765",
|
|
"Roblox-Universe-Id": "7296012067",
|
|
"Roblox-Game-Id": "f6b50e0e-45d2-4d38-a4b5-3ad0e0561230",
|
|
"PlayerCount": "30",
|
|
"Requester": "Client"
|
|
}},
|
|
json={
|
|
"purchasingUser": "users/1337",
|
|
"context": {
|
|
"productSurface": "SHOPPING_CART_WEB",
|
|
},
|
|
"fulfillmentGroups": [{
|
|
"strategy": "BEST_EFFORT",
|
|
"lineItems": [{
|
|
"collectibleProductId": "b0b9b194-8d64-41f2-b7c6-5b6a8c4830ff",
|
|
"agreedPriceRobux": 0,
|
|
}]
|
|
}],
|
|
"batchPurchaseAuthToken": "[\"\",]"
|
|
|
|
})
|
|
print(r.text) |