分类
后端

Shopify rest API

composer require shopify/shopify-api
Context::initialize(
    $_ENV['SHOPIFY_API_KEY'],
    $_ENV['SHOPIFY_API_SECRET'],
    $_ENV['SHOPIFY_APP_SCOPES'],
    $_ENV['SHOPIFY_APP_HOST_NAME'],
    new FileSessionStorage('/tmp/php_sessions'),
    '2021-04',
    true,
    false,
);

API地址 https://github.com/Shopify/shopify-php-api