diff --git a/configure.phtml b/configure.phtml index d645d43..ca3eee3 100644 --- a/configure.phtml +++ b/configure.phtml @@ -1,13 +1,14 @@ kagi_api_key; + $kagi_token = FreshRSS_Context::$user_conf->kagi_token; ?>
+

- +
- +
diff --git a/extension.php b/extension.php index 50defc8..9b409e5 100644 --- a/extension.php +++ b/extension.php @@ -16,7 +16,7 @@ class KagiSummarizerExtension extends Minz_Extension { $this->registerTranslates(); if (Minz_Request::isPost()) { - FreshRSS_Context::$user_conf->kagi_api_key = Minz_Request::param('kagi_api_key', ''); + FreshRSS_Context::$user_conf->kagi_token = Minz_Request::param('kagi_token', ''); FreshRSS_Context::$user_conf->save(); } } diff --git a/i18n/en/ext.php b/i18n/en/ext.php index 091c06b..a784fbe 100644 --- a/i18n/en/ext.php +++ b/i18n/en/ext.php @@ -3,7 +3,8 @@ return array( 'kagiSummarizer' => array( 'configure' => array( - 'kagi_api_key' => 'Kagi API Key' + 'kagi_token' => 'Kagi Token', + 'kagi_token_help' => 'Copy and paste the "Session Link" from you Kagi Account settings.' ) ) );