class GdsApi::EmailAlertApi
def create_subscriber_list(attributes)
def create_subscriber_list(attributes) post_json!("#{endpoint}/subscriber-lists", attributes) end
def find_or_create_subscriber_list(attributes)
def find_or_create_subscriber_list(attributes) search_subscriber_list_by_tags(attributes.fetch("tags")) rescue GdsApi::HTTPNotFound create_subscriber_list(attributes) end
def nested_query_string(params)
def nested_query_string(params) Rack::Utils.build_nested_query(params) end
def search_subscriber_list_by_tags(tags)
def search_subscriber_list_by_tags(tags) get_json!("#{endpoint}/subscriber-lists?" + nested_query_string(tags: tags)) end
def send_alert(publication)
def send_alert(publication) post_json!("#{endpoint}/notifications", publication) end