Mô tả
Plugin Information
Plugin Name: Dynamic API Integration
Description: A plugin for dynamic API integration in the Gutenberg block editor.
Version: 1.0.0
Author: Karishma Shukla
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Features
- Dynamically fetch data from external APIs.
- Display API data within a custom Gutenberg block.
- Configure API URL, request type, and parameters from the WordPress admin settings.
- Supports both GET and POST request methods.
- REST API endpoint for secure communication.
Usage
Configure API Settings
- Navigate to Settings > API Integration in the WordPress admin panel.
- Configure the following options:
- API URL: Enter the external API endpoint.
- Request Type: Select
GETorPOST. - Parameters: Provide JSON-formatted parameters (e.g.,
{ "key": "value" }).
- Save the settings.
Add the Gutenberg Block
- Open the WordPress block editor (Gutenberg).
- Search for the Dynamic API Integration block.
- Add the block to your post or page.
- Preview or publish the post to view the fetched API data.
REST API Endpoint
This plugin exposes a custom REST API endpoint:
- Endpoint:
/wp-json/dai/v1/fetch-data - Request Type: Configurable via the admin settings.
- Parameters: Configurable via the admin settings.
License
This plugin is licensed under the GPLv2 or later.
Support
For support, please contact the plugin developer or raise an issue in the plugin repository.
Khối
Plugin này cung cấp 1 khối.
- Dynamic Api Integration Example block scaffolded with Create Block tool.
Cài đặt
- Download the plugin ZIP file.
- Go to your WordPress admin dashboard.
- Navigate to Plugins > Add New.
- Click Upload Plugin and select the ZIP file.
- Click Install Now and then Activate.
Hỏi đáp
-
Q: What is the minimum WordPress version required?
-
A: This plugin requires WordPress version 5.0 or higher.
-
Q: What is the minimum PHP version required?
-
A: This plugin requires PHP version 7.4 or higher.
-
Q: How do I use this plugin?
-
A: Configure the API settings in the WordPress admin under Settings > API Integration, then add the Dynamic API Integration block to your post or page.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Dynamic API Integration” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Dynamic API Integration” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0.0
- Initial release.