class GdsApi::AccountApi
def check_for_email_subscription(govuk_account_session:)
-
(Hash)
- Whether the user has a subscription, and a new session header
Parameters:
-
govuk_account_session
(String
) -- Value of the session header
def check_for_email_subscription(govuk_account_session:) get_json("#{endpoint}/api/transition-checker-email-subscription", auth_headers(govuk_account_session)) end