Script function that returns published data of a catalog item


#1

Was just wondering; is there any function, that when passed the ID of a catalog item, returns data (preferably stored in a table/dictionary) such as the item’s publish date?

Theoretically:

SomeService:FunctionThatReturnsCatalogData(AssetID)
-- table of information of assetID

This is probably a trivial question, but I’ve no idea where to look. I looked in AssetService, but there’s no information there. Help, please?

EDIT: Consider this solved. MarketplaceService works great here.


#2

I know you found MarketPlaceService, but my favorite function is
MarketplaceService:GetProductInfo(AssetId)
Should work well for you.


#3

I have another question; how would you convert the timestamp the function returns to a number, in seconds?


#4

Try looking into os.date, otherwise, create a new thread.


closed #5

Requested by OP


opened #6

Support threads will stay open to allow for people to suggest improved practices and further recommendations over the already existing posts at any point in the future.