ro.py
ro.py copied to clipboard
`catalog.roblox.com` endpoint support
This adds support for the catalog.roblox.com endpoint. Related changes include:
- Bumping Python to 3.8 (discussion in RoAPI Discord)
- The introduction of two new classes for catalog items,
CatalogItemandLimitedCatalogItem.- Limited items contain special attributes not present in a normal
CatalogItem, so I figured a separate class would aid in maintainability.
- Limited items contain special attributes not present in a normal
- Modifying
partials.partialuserandpartials.partialgroupto include two new classes that handle user/group data from this endpoint. - A new exception class,
exceptions.CatalogItemNotFound. - Two new functions in
client.Client,get_catalog_itemsandget_base_catalog_items.- Do we want singular variants of these functions for consistency? Something like
get_catalog_itemandget_base_catalog_item.
- Do we want singular variants of these functions for consistency? Something like
- (I think that's it?)
Things left to do
- [x] Finish documentation for
CatalogItemandLimitedCatalogItem - [ ] Double-check that I imported everything in all the right spots
- [ ] Identify other potential values for
catalog.CatalogItemTypes - The following endpoints:
- [ ]
categories - [ ]
subcategories - [ ]
asset-to-category - [ ]
get-topics - [ ] more?
- [ ]