adding templates and refactor to use dashboard data endpoint

This commit is contained in:
Beverly Nguyen
2025-10-24 14:40:17 -07:00
parent 362c52ce8b
commit 9ead834492
3 changed files with 15 additions and 9 deletions

View File

@@ -83,5 +83,11 @@ class OrganizationsClient(NotifyAdminAPIClient):
url="/organizations/{}/message-allowance".format(org_id),
)
def get_organization_dashboard(self, org_id, year):
return self.get(
url=f"/organizations/{org_id}/dashboard",
params={"year": str(year)},
)
organizations_client = OrganizationsClient()