PHP-Shopify-API-Wrapper

Shopify PHP (Guzzle) API Wrapper

  • 所有者: ShopifyExtras/PHP-Shopify-API-Wrapper
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Shopify API Wrapper

By Zapiet.com - Zapiet - Creators of the Store Pickup + Delivery app.

Installing via Composer

The recommended way to install the wrapper is through
Composer.

# Install Composer
curl -sS https://getcomposer.org/installer, php

Next, run the Composer command to install the latest stable version of the wrapper:

composer require shopifyextras/shopify-php-api-wrapper

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Getting Started

First you will need to initialise the client like this:

$client = new \Shopify\Client([
   "shopUrl" => $shopUrl,
   "X-Shopify-Access-Token" => $accessToken
]);

Then you can begin making requests like shown below. Please note that the list of requests below is not complete. All endpoints are available just take a look in the /src/resources folder for reference.

Orders

// Get a list of all orders.
$client->getOrders();

// Get a specific order.
$client->getOrder(['id' => $order_id]);

// Get Order ID and Total Price for a specific order. 
$client->getOrder(['id' => $order_id, 
                   'fields' => 'id,total_price']);

Products

// Get a list of all products.
$client->getProducts();

// Get a specific product.
$client->getProduct(["id" => $product_id]);

Product Variants

// Get a list of all variants for a specific product.
$client->getProductVariants(["id" => $product_id]);

// Get a specific product variant.
$client->getProductVariant(["id" => $variant_id]);

// Get metafields for a specific variant. 
$client->getProductVariantMetafields(["id" => $variant_id]);

Bugs & Issues

If you spot any bugs, please report it using the issue tracker. If you would like to contribute to the project please feel free to make your amends and submit a pull request.

Professional Services

Unfortunately we are unable to provide free technical support for the wrapper. If you require this kind of help then please contact us by emailing support@zapiet.com.

Test the API at RapidAPI.

主要指標

概覽
名稱與所有者ShopifyExtras/PHP-Shopify-API-Wrapper
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2014-12-04 09:35:19
推送於2020-09-24 17:50:39
最后一次提交2020-09-24 18:50:38
發布數8
最新版本名稱v1.1.4-alpha (發布於 )
第一版名稱v1.0 (發布於 )
用户参与
星數119
關注者數14
派生數68
提交數134
已啟用問題?
問題數40
打開的問題數28
拉請求數34
打開的拉請求數3
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?