mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -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:
@@ -9,3 +9,6 @@ class ComplaintApiClient(NotifyAdminAPIClient):
|
||||
|
||||
def get_all_complaints(self):
|
||||
return self.get('/complaint')
|
||||
|
||||
def get_complaint_count(self, params_dict=None):
|
||||
return self.get('/complaint/count-by-date-range', params=params_dict)
|
||||
|
||||
Reference in New Issue
Block a user