mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Add new methods to Service and Complaint api clients
* Added a new method to the ComplaintApiClient to get the total complaints by date range from the API. * Added a new method to the ServiceAPIClient to get the new platform admin stats data from the API.
This commit is contained in:
@@ -409,6 +409,9 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
def get_aggregate_platform_stats(self, params_dict=None):
|
||||
return self.get("/service/platform-stats", params=params_dict)
|
||||
|
||||
def get_new_aggregate_platform_stats(self, params_dict=None):
|
||||
return self.get("/service/platform-stats-new", params=params_dict)
|
||||
|
||||
def get_sms_senders(self, service_id):
|
||||
return self.get(
|
||||
"/service/{}/sms-sender".format(service_id)
|
||||
|
||||
Reference in New Issue
Block a user