strapi-hook-magento

A hook to setup a magento service for the Strapi framework

Usage no npm install needed!

<script type="module">
  import strapiHookMagento from 'https://cdn.skypack.dev/strapi-hook-magento';
</script>

README

strapi-hook-magento

This hook allows you to use Magento 2 Rest API with strapi.

Installation

# using yarn
yarn add strapi-hook-magento

# using npm
npm install strapi-hook-magento --save

Hook config

To activate and configure the hook, you need to create or update the file ./config/hook.js in your strapi app.

module.exports = {
  settings: {
    // ...
    magento: {
      enabled: true,
      clients: [
        [
          "v-media.pl",
          {
            url: "https://v-media.pl",
            consumerKey: "",
            consumerSecret: "",
            accessToken: "",
            accessTokenSecret: "",
          },
        ],
      ],
    },
  },
};

Resources

Links