lmadev/shopware-api

与 Shopware API 连接的供应商库。

2.1.7 2019-09-27 12:00 UTC

This package is auto-updated.

Last update: 2024-09-27 23:42:19 UTC


README

与 Shopware 5.x 平台连接的供应商库。

需求

  • Shopware 5.x 或更高版本
  • PHP 7.1.3 或更高版本

安装

从发布页面下载插件并在 shopware 中启用它。

使用方法

更新您的 /config 目录中的 services.yaml 并填写自己的值

parameters:
    lma_dev.shopware_api.user: {user}
    lma_dev.shopware_api.api_key: {api_key}
    lma_dev.shopware_api.shop_url: https://example.dev/api
services:
    # default configuration for services in *this* file
    LmaDev\ShopwareApi\ConnectionApi:
            bind:
                string $baseUri: '%lma_dev.shopware_api.shop_uri%'
                string $user: '%lma_dev.shopware_api.user%'
                string $apiKey: '%lma_dev.shopware_api.api_key%'

如何使用

您可以通过调用以下方法从您商店的 API 中进行下注

  • 获取
  • 发布
  • 放置
  • 删除

贡献

请随意分支并发送 pull 请求!

许可

此项目使用 MIT 许可证。