From 74dd5d0170314da623fd14f09a9badb57a3352e1 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Mon, 25 Sep 2023 12:35:12 -0500 Subject: [PATCH] changed config to token instead of api key --- configure.phtml | 7 ++++--- extension.php | 2 +- i18n/en/ext.php | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) 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.' ) ) );