pawan/module-product-alert-api

产品与价格警报API支持

安装次数: 4,829

依赖项: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

开放问题: 0

类型:magento2-module

v1.0.4 2021-07-25 14:28 UTC

This package is not auto-updated.

Last update: 2024-09-18 13:56:42 UTC


README

描述

我们在 etc/webapi.xml 文件中定义了我们的API端点。添加产品时使用 /V1/productalertstock/add/:productId,删除时使用 /V1/productalertstock/delete/:productId。完整的URL将是 http://{Magento2Root}/rest/V1/productalertstock/add/123

要访问上述API,您需要客户令牌,可以通过 http://{Magento2Root}/rest/V1/integration/customer/token 获取。

Composer安装

composer require pawan/module-product-alert-api
php bin/magento setup:upgrade
php bin/magento cache:flush

位置

  • 123 是产品ID
  • {Magento2Root} 是magento 2的根文件夹/URL