mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-08 07:21:13 -04:00
* 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.
15 lines
454 B
Python
15 lines
454 B
Python
from app.notify_client import NotifyAdminAPIClient
|
|
|
|
|
|
class ComplaintApiClient(NotifyAdminAPIClient):
|
|
# Fudge assert in the super __init__ so
|
|
# we can set those variables later.
|
|
def __init__(self):
|
|
super().__init__("a" * 73, "b")
|
|
|
|
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)
|