搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目