=== HajimeCreate Text Weaver API Integration === Contributors: hajimecreate Tags: API, shortcode, text, external API Requires at least: 5.0 Tested up to: 6.8 Stable tag: 1.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Requires PHP: 7.0 APIからテキストを取得して出力するWordPressプラグインです。 Text Weaver APIと連携して、ショートコードでコンテンツを表示します。 == Description == HajimeCreate Text Weaver API Integration is a plugin that fetches text from an external API and displays it on your WordPress site using a shortcode. * Output text fetched from API with the shortcode [hajimecreate_text_weaver_api label=""] * Manage API key and cache time from the admin settings * Test mode available (shows dummy response) * Errors are hidden or notified in the admin panel Text Weaver APIは、外部APIからテキストを取得し、WordPressサイト上にショートコードで表示できるプラグインです。 * ショートコード [hajimecreate_text_weaver_api label=""] でAPIから取得したテキストを出力 * APIキー・キャッシュ時間などの管理画面設定 * エラー時は非表示または管理画面で通知 == Installation == 1. Upload the plugin files to the `/wp-content/plugins/hajimecreate-text-weaver-api-integration/` directory. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Go to 'Settings' > 'Text Weaver API' and set your API key. 1. プラグインファイル一式を `/wp-content/plugins/hajimecreate-text-weaver-api-integration/` ディレクトリにアップロードします。 2. WordPress管理画面の「プラグイン」から「HajimeCreate Text Weaver API Integration」を有効化します。 3. 管理画面「設定」>「Text Weaver API」よりAPIキーを設定してください。 == Usage == You can use the following shortcode in posts, pages, or widgets: [hajimecreate_text_weaver_api label="label_name"] – label: Specify the label name for the text you want to fetch from the API. – cache_time: (Optional) Set the cache time in seconds. If omitted, the admin setting is used. Example: [hajimecreate_text_weaver_api label="greeting"] 投稿や固定ページ、ウィジェットなどで以下のショートコードを利用できます。 [hajimecreate_text_weaver_api label="ラベル名"] – label: APIから取得したいテキストのラベル名を指定します。 – cache_time: (任意)キャッシュ時間(秒)を指定できます。未指定時は管理画面の設定値が使われます。 例: [hajimecreate_text_weaver_api label="greeting"] == Admin Features == – Set API key – Set cache time – Toggle test mode (shows dummy response) – Test API connection – APIキーの設定 – キャッシュ時間の設定 – API接続テスト == FAQ == Q. Where can I get the API key? A. You can issue an API key from the Text Weaver main service admin panel. Q. What happens if there is an error? A. If the API key is not set or there is an API error, the error message is hidden or notified in the admin panel. Q. How does the cache work? A. The API response is temporarily saved using the cache_time attribute or the value set in the admin panel (in seconds). Q. APIキーはどこで取得できますか? A. Text Weaver本体サービスの管理画面から発行できます。 Q. エラー時の挙動は? A. APIキー未設定やAPIエラー時は、エラーメッセージが非表示または管理画面に通知されます。 Q. キャッシュはどのように動作しますか? A. cache_time属性または管理画面の設定値(秒)でAPIレスポンスを一時保存します。 == Screenshots == 1. Admin settings page 2. Example of shortcode usage 1. 管理画面の設定ページ 2. ショートコードの利用例 == Changelog == = 1.0.0 = * Initial release * 初回リリース == Upgrade Notice == * 1.0.0: Initial release / 初回リリース == License == GPLv2 or later == Arbitrary section == – This plugin works with the external service "Text Weaver". – An API key is required to use the service. – 本プラグインは外部サービス「Text Weaver」と連携します。 – サービスの利用には別途APIキーが必要です。