api tests
This commit is contained in:
parent
6010daf308
commit
200e580596
@ -24,3 +24,38 @@ https://apis.roblox.com/cloud/v2/avatar-marketplace-orders?idempotencyKey.key=35
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
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)
|
||||||
@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
we need more info on this
|
we need more info on this
|
||||||
|
|
||||||
$.post("https://economy.roblox.com/v2/developer-products/114702108643191/purchase",
|
$.post("https://economy.roblox.com/v2/developer-products/1884453824/purchase",
|
||||||
{ "expectedPrice": 0, "saleLocationType": "ExperiencesDevApiOnly", "saleLocationId": 9346039031}})
|
{ "expectedPrice": 0, "saleLocationType": "Game", "saleLocationId": 7296012067})
|
||||||
"""
|
"""
|
||||||
|
from methods.base import Purchaser
|
||||||
|
|
||||||
|
p = Purchaser(roblosecurity="")
|
||||||
|
|
||||||
|
print(p.get_asset_metadata_extended(98752422639730))
|
||||||
|
print(p.get_asset_metadata(98752422639730))
|
||||||
|
|||||||
@ -21,4 +21,57 @@ POST https://apis.roblox.com/marketplace-sales/v1/item/8387139d-2fdf-4534-849c-9
|
|||||||
"idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e0765ae",
|
"idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e0765ae",
|
||||||
"collectibleProductId": "89bfd74b-cdab-4031-9aa8-ab2c69cc68c7"
|
"collectibleProductId": "89bfd74b-cdab-4031-9aa8-ab2c69cc68c7"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
from methods.base import Purchaser
|
||||||
|
|
||||||
|
p = Purchaser(roblosecurity="")
|
||||||
|
|
||||||
|
r = p.request(
|
||||||
|
url="https://apis.roblox.com/marketplace-sales/v1/item/08889039-8663-4fad-8338-8da0ca335df9/purchase-item",
|
||||||
|
method=requests.post,
|
||||||
|
json={
|
||||||
|
"collectibleItemId": "08889039-8663-4fad-8338-8da0ca335df9",
|
||||||
|
"expectedCurrency": 1,
|
||||||
|
"expectedPrice": 0,
|
||||||
|
"expectedPurchaserId": "1337",
|
||||||
|
"expectedPurchaserType": "User",
|
||||||
|
"expectedSellerId": 1,
|
||||||
|
"expectedSellerType": "User",
|
||||||
|
"idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e07a5ae",
|
||||||
|
"collectibleProductId": "b0b9b194-8d64-41f2-b7c6-5b6a8c4830ff"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
r = p.request(
|
||||||
|
url="https://apis.roblox.com/marketplace-sales/v1/item/08889039-8663-4fad-8338-8da0ca335df9/purchase-item",
|
||||||
|
headers = {**r.headers, **{
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Cache-Control": "no-cache",
|
||||||
|
"Roblox-Place-Id": "124180448122765",
|
||||||
|
"Roblox-Universe-Id": "7296012067",
|
||||||
|
"Roblox-Game-Id": "f6b50e0e-45d2-4d38-a4b5-3ad0e0561230",
|
||||||
|
"PlayerCount": "30",
|
||||||
|
"Requester": "Client",
|
||||||
|
}},
|
||||||
|
method=requests.post,
|
||||||
|
json={
|
||||||
|
"collectibleItemId": "08889039-8663-4fad-8338-8da0ca335df9",
|
||||||
|
"expectedCurrency": 1,
|
||||||
|
"expectedPrice": 0,
|
||||||
|
"expectedPurchaserId": "1337",
|
||||||
|
"expectedPurchaserType": "User",
|
||||||
|
"expectedSellerId": 1,
|
||||||
|
"expectedSellerType": "User",
|
||||||
|
"idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e07a5ae",
|
||||||
|
"collectibleProductId": "b0b9b194-8d64-41f2-b7c6-5b6a8c4830ff",
|
||||||
|
"purchaseAuthToken": str(uuid.uuid4())
|
||||||
|
#"saleLocationType": "ExperiencesDevApiOnly",
|
||||||
|
#"saleLocationId": 7296012067
|
||||||
|
}
|
||||||
|
)
|
||||||
|
print(r.text)
|
||||||
Loading…
Reference in New Issue
Block a user