class GdsApi::AccountApi
def get_attributes(attributes:, govuk_account_session:)
-
(Hash)
- The attribute values (if present), and a new session header
Parameters:
-
govuk_account_session
(String
) -- Value of the session header -
attributes
(String
) -- Names of the attributes to check
def get_attributes(attributes:, govuk_account_session:) querystring = nested_query_string({ attributes: }.compact) get_json("#{endpoint}/api/attributes?#{querystring}", auth_headers(govuk_account_session)) end