diff --git a/methods/avatar_marketplace_orders_v2.py b/methods/avatar_marketplace_orders_v2.py index e210d5f..c2c6474 100644 --- a/methods/avatar_marketplace_orders_v2.py +++ b/methods/avatar_marketplace_orders_v2.py @@ -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) \ No newline at end of file diff --git a/methods/developer_products_v2.py b/methods/developer_products_v2.py index 7f7ee78..d57b0e7 100644 --- a/methods/developer_products_v2.py +++ b/methods/developer_products_v2.py @@ -3,6 +3,12 @@ we need more info on this -$.post("https://economy.roblox.com/v2/developer-products/114702108643191/purchase", -{ "expectedPrice": 0, "saleLocationType": "ExperiencesDevApiOnly", "saleLocationId": 9346039031}}) -""" \ No newline at end of file +$.post("https://economy.roblox.com/v2/developer-products/1884453824/purchase", +{ "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)) diff --git a/methods/marketplace_sales_v1.py b/methods/marketplace_sales_v1.py index 07a4e06..3f88667 100644 --- a/methods/marketplace_sales_v1.py +++ b/methods/marketplace_sales_v1.py @@ -21,4 +21,57 @@ POST https://apis.roblox.com/marketplace-sales/v1/item/8387139d-2fdf-4534-849c-9 "idempotencyKey": "896b20d0-a738-45af-91b0-d9eb4e0765ae", "collectibleProductId": "89bfd74b-cdab-4031-9aa8-ab2c69cc68c7" } -""" \ No newline at end of file +""" +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) \ No newline at end of file