mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
refactor
This commit is contained in:
@@ -78,5 +78,10 @@ class OrganizationsClient(NotifyAdminAPIClient):
|
||||
params={"year": str(year)},
|
||||
)
|
||||
|
||||
def get_organization_message_usage(self, org_id):
|
||||
return self.get(
|
||||
url="/organizations/{}/message-allowance".format(org_id),
|
||||
)
|
||||
|
||||
|
||||
organizations_client = OrganizationsClient()
|
||||
|
||||
@@ -561,11 +561,6 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
url="service/get-service-message-ratio?service_id={0}".format(service_id),
|
||||
)
|
||||
|
||||
def get_organization_message_usage(self, org_id):
|
||||
return self.get(
|
||||
url="/organizations/{0}/message-allowance".format(org_id),
|
||||
)
|
||||
|
||||
|
||||
service_api_client = ServiceAPIClient()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user