分类
后端

WooCommerce rest API

WooCommerce 是 WordPress 的开源电子商务插件
API SDK
GitHub地址 https://github.com/woocommerce/wc-api-php

composer require automattic/woocommerce
use Automattic\WooCommerce\Client;

$woocommerce = new Client(
    'http://example.com', 
    'ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 
    'cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    [
        'version' => 'wc/v3',
    ]
);

API文档地址
https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction