class Multiwoven::Integrations::Destination::GoogleSheets::Client

def discover(connection_config)

def discover(connection_config)
  connection_config = connection_config.with_indifferent_access
  authorize_client(connection_config)
  spreadsheets = fetch_google_spread_sheets(connection_config)
  catalog = build_catalog_from_spreadsheets(spreadsheets, connection_config)
  catalog.to_multiwoven_message
rescue StandardError => e
  handle_exception(e, {
                     context: "GOOGLE_SHEETS:CRM:DISCOVER:EXCEPTION",
                     type: "error"
                   })
end