Skip to content

Commit

Permalink
Add subscriber list metric endpoint wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Jan 8, 2024
1 parent 2a06fab commit 22a0a7c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/gds_api/email_alert_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@ def get_subscriber_list(slug:)
get_json("#{endpoint}/subscriber-lists/#{uri_encode(slug)}")
end

# Get a Subscriber List
#
# @param [path] path of page for subscriber list
#
# @return [Hash] {
# subscriber_list_count
# all_notify_count
# }

def get_subscriber_list_metrics(path:)
get_json("#{endpoint}/subscriber-lists/metrics#{path}")
end

# Get a Subscription
#
# @return [Hash] subscription: {
Expand Down

0 comments on commit 22a0a7c

Please sign in to comment.