搜尋套件、儲存庫與 APP 分類

套件詳情v4.6.0

woosignal

適用於 dart 的 WooCommerce REST API,連接您的 WooCommerce 商店並開始使用我們提供的 API 端點介面進行開發。

AndroidiOSmacOS
近 30 天下載
728
喜歡數
63
Pub 分數
150

安裝套件

flutter pub add woosignal

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

WooSignal 是一個 Dart 套件,為 WooCommerce REST API 提供乾淨的介面,讓開發者能順暢地連接並與 WooCommerce 商店互動。它透過提供常見 API 端點(例如產品、訂單和客戶)的結構化方法來簡化整合。專為 Flutter 應用設計,支援 Android、iOS 和 macOS,非常適合電商應用。此套件將複雜的 API 呼叫抽象成直覺的函數,減少開發時間並提升可靠性。

適用情境

  • 建構Flutter電商應用
  • 與 WooCommerce 商店整合
  • 以程式化方式管理產品和訂單
  • 同步客戶資料
  • 透過WooCommerce處理付款
  • 即時庫存更新

主要特色

  • WooCommerce API 端點的預建方法
  • 支援 Android、iOS 與 macOS
  • 安全的身分驗證處理
  • 透過 flutter pub add 輕鬆設定
  • 類型安全的回應
  • 錯誤處理與除錯工具

適合對象

  • Flutter 開發人員建構電商應用
  • 與現有 WooCommerce 商店整合的團隊
  • 需要快速 API 存取 WooCommerce 的開發人員
  • 初創企業推出線上市場
  • 專注於產品管理的行動應用程式開發者

使用建議

  • 需要一個啟用了 REST API 的 WooCommerce 商店
  • 需要正確的 API 憑證(消費者金鑰/密鑰)
  • 僅限 WooCommerce 特定功能
  • 可能需要自訂邏輯以應對進階使用案例
  • 依賴網路連接以進行即時操作

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

WooCommerce API Dart plugin

Official WooSignal WooCommerce package

Build apps for WooCommerce easier with our new package. Our API provides many requests types e.g. getProducts, getOrders and many more. Free to get started, see the simple examples below.

For help getting started with WooSignal, view our online documentation, which offers a more detail guide.

Getting Started

In your flutter project add the dependency:

dependencies:
  ...
  woosignal: ^4.4.0
Usage example

Import woosignal.dart

import 'package:woosignal/woosignal.dart';
Example using WooSignal API for WooCommerce
import 'package:woosignal/woosignal.dart';

...

// EXAMPLE GET PRODUCTS
_getProducts() async {

        // Step 1 - Initialize WooSignal
        await WooSignal.instance.init(appKey: "your app key");

        // Step 2 - Call an API
        List<Product> products = await WooSignal.instance.getProducts();

        print(products[0].name); // prints a product name
  });
}
Available API Requests
WooCommerce - Products
  • Get Products
  • Retrieve a Product by id
  • Update a Product by id
  • Delete a Product by id
  • Create a Product
  • Batch update Products

See Products API

WooCommerce - Product Variations
  • Get Product Variations
  • Retrieve a Product Variation by id

See Product Variations API

WooCommerce - Product Attributes
  • Get Product Attributes

See Product Attributes API

WooCommerce - Products Attribute Terms
  • Get Products Attribute Terms

See Products Attribute Terms API

WooCommerce - Product Categories
  • Get Product Categories

See Product Categories API

WooCommerce - Products Shipping Classes
  • Get Products Shipping Classes

See Products Shipping Classes API

WooCommerce - Product Reviews
  • Get Product Reviews

See Product Reviews API

WooCommerce - Tax Rates
  • Get Tax Rates

See Tax Rates API

WooCommerce - Tax Classes
  • Get Tax Classes

See Tax Classes API

WooCommerce - Shipping Zones
  • Get Shipping Zones
  • Retrieve a Shipping Zone by id

See Tax Classes API

WooCommerce - Shipping Zone Locations
  • Get Shipping Zone Locations
  • Retrieve a Shipping Zone Location by id

See Shipping Zone Locations API

WooCommerce - Shipping Methods
  • Get Shipping Methods

See Shipping Methods API

WooCommerce - Orders
  • Get Orders
  • Retrieve a Order by id
  • Create an Order
  • Update an Order
  • Batch update Orders

See Order API

WooCommerce - Customers
  • Get Customers
  • Create a Customer
  • Delete a Customer
  • Update a Customer
  • Batch update Customers

See Customers API

WooCommerce - API Orders Notes
  • List all Orders Notes
  • Retrieve a Orders Notes by id
  • Delete a Orders Notes by id
  • Create a Orders Notes

See Orders Notes API

WooCommerce - Refunds
  • Get refunds from an order id
  • Retrieve a retrieve and view a specific refund from an order
  • Delete a delete an order refund.
  • Create a new refund for an order

See Refunds API

WooCommerce - Coupons
  • Get all coupons.
  • Retrieve and view a specific coupon by ID
  • Update a coupon.
  • Delete a coupon.
  • Batch update Coupons.

See Coupons API

WooCommerce - Reports
  • Get Reports
  • Retrieve a report of Sales
  • Retrieve a report of Top Sellers
  • Retrieve a report of the Total Coupons
  • Retrieve a report of the Total Customers
  • Retrieve a report of the Total Orders
  • Retrieve a report of the Total Products
  • Retrieve a report of the Total Reviews

See Reports API

WooCommerce - Data
  • Retrieve a list of available data endpoints.
  • Get continents.
  • Retrieve continent data.
  • Get countries.
  • Retrieve country data.
  • Get currencies.
  • Retrieve currency data.
  • Retrieve current currency data.

See Data API

WooCommerce - System Status
  • Get System Status Items

See System Status API

WooCommerce - Payment gateways
  • Retrieve a Payment Gateway by id
  • Get all the Payment Gateways
  • Update a Payment Gateway

See Payment gateways API

WooCommerce - Setting options
  • Retrieve a specific Setting Option
  • Get all the Setting Options
  • Update a Setting Option by id
  • Batch update Setting Options

See Setting options API

Disclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners.

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案