I am trying to get all t-shirts a roblox user has created. One issue is that I cannot access Roblox Resources in studio. Is there a way around this?
This Code Should Get The Player's T-Shirt Inventory. Instead it throws an error!
local httpService = game:GetService("HttpService") local request = httpService:GetAsync("https://inventory.roblox.com/v2/users/558874715/inventory?assetTypes=TShirt&limit=10&sortOrder=Asc") local json = httpService:JSONDecode(request) print(json)
Solution: Use Catalog Search Instead Of Inventory. I used roproxy so I can access the service from studio.
local httpService = game:GetService("HttpService") local request = httpService:GetAsync("https://catalog.roproxy.com/v2/search/items/details?Subcategory=13&CreatorTargetId=***UserId***5&SortType=4&SortAggregation=5") local json = httpService:JSONDecode(request) print(json)