Class: OmniAuth::Strategies::Klaviyo
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Klaviyo
- Defined in:
- lib/omniauth/strategies/klaviyo.rb
Overview
OmniAuth strategy for Klaviyo OAuth2 authentication. This class handles the authorization and callback process for Klaviyo.
Constant Summary collapse
- DEFAULT_REVISION =
"2024-10-15"
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
22 23 24 |
# File 'lib/omniauth/strategies/klaviyo.rb', line 22 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
28 29 30 31 |
# File 'lib/omniauth/strategies/klaviyo.rb', line 28 def raw_info response = access_token.get("/api/accounts", headers: { "revision" => DEFAULT_REVISION }).parsed @raw_info ||= response.dig("data", 0) || {} end |