class GdsApi::AccountApi
def get_email_subscription(name:, govuk_account_session:)
-
(Hash)
- Details of the subscription, if it exists.
Parameters:
-
govuk_account_session
(String
) -- Value of the session header -
name
(String
) -- Name of the subscription
def get_email_subscription(name:, govuk_account_session:) get_json("#{endpoint}/api/email-subscriptions/#{CGI.escape(name)}", auth_headers(govuk_account_session)) end