Skip to content

Commit

Permalink
✨ feat(humblCOMPASS): added membership parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jjfantini committed Oct 17, 2024
1 parent cb0cc5d commit d437356
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/humblapi/api/v1/routers/toolbox/humbl_compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ async def humbl_compass_route(
"humbl_dark",
description="The template/theme to use for the plotly figure",
),
membership: Literal[
"anonymous", "peon", "premium", "power", "permanent", "admin"
] = Query(
"anonymous",
description="The membership level of the user",
),
) -> HumblResponse[HumblCompassResponse | HumblCompassChartResponse]:
"""
Retrieve HUMBL Compass data for the specified country or group of countries.
Expand All @@ -211,6 +217,7 @@ async def humbl_compass_route(
toolbox = Toolbox(
start_date=start_date,
end_date=end_date,
membership=membership,
)

result = toolbox.fundamental.humbl_compass(
Expand Down

0 comments on commit d437356

Please sign in to comment.