A simple asynchronous wrapper for MakeUp api
Base: http://makeup-api.herokuapp.com/api/v1/products.json
Session: aiohttp.ClientSession
Parameter | Data Type | Description |
---|---|---|
product_type | string | The type of makeup being searched for (ie. lipstick, eyeliner). See list of product types below. Will return a list of all products of this type |
product_category | string | Sub-category for each makeup-type. (ie. lip gloss is a category of lipstick). See product types below. If a category exists it will be under 'By Category'. Will return a list of all products of this category |
product_tags | string | list separated by commas |
brand | string | Brand of the product. Will return all products for each brand |
import asyncio
from aio_makeup import MakeUp
async def main():
async with MakeUp() as make_up:
blush_powder = await make_up._get(endpoint='blush', extension='powder')
vegan = await make_up.tags(product_tags='vegan', product_type='bronzer', product_category='powder')
asyncio.run(main())