mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Add broadcasts to the dashboard
Shows current and previous broadcasts. Does not add a page for viewing an individual broadcast. Broadcasts are split into live and previous. Draft broadcasts are excluded from the dashboard.
This commit is contained in:
@@ -24,6 +24,9 @@ class BroadcastMessageAPIClient(NotifyAdminAPIClient):
|
||||
|
||||
return broadcast_message
|
||||
|
||||
def get_broadcast_messages(self, service_id):
|
||||
return self.get(f'/service/{service_id}/broadcast-message')['broadcast_messages']
|
||||
|
||||
def get_broadcast_message(self, *, service_id, broadcast_message_id):
|
||||
return self.get(f'/service/{service_id}/broadcast-message/{broadcast_message_id}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user