项目作者: efoli-llc
项目描述 :
SDK to get order data from Inkybay Shopify order API.
高级语言: PHP
项目地址: git://github.com/efoli-llc/inkybay-shopify-order-sdk.git
SDK to get order data from Inkybay Shopify order API.
SDK to get order data from Inkybay Shopify order API.
Follow the steps to setup SDK with Inkybay Shopify order API
- Get your AccessKey, SecretKey & setup Hook URL
Inkybay=>Settings=>Add-Ons=>Order Batch Download & Exporter=>Settings
After “Activate API” you will get your AccessKey, SecretKey
Hook URL is your server URL, where API will send ‘orderId’ & ‘itemId’ after the order process completed.
- Setup SDK
Open conf.php and edit :
Set your accessKey on ‘ACCESS_KEY‘
Set your secretKey on ‘SECRET_KEY‘
- Get order item data
Where you need the order item data, just add bellow code to your PHP file :
require_once(‘conf.php’);
$data = $orderService->getOrderItem(‘orderId’, ‘itemId’, ‘json’);
You will get ‘orderId’, & ‘itemId’ from your hook URL by $_GET[‘orderId’] & $_GET[‘itemId’]
Sample codes on : item.php
- Get order data
Where you need all the order data, just add bellow code to your PHP file :
require_once(‘conf.php’);
$data = $orderService->getOrder(‘orderId’, ‘json’);
You will get ‘orderId’ from your hook URL by $_GET[‘orderId’]
Sample codes on : order.php
—- Thanks.
Hope you will enjoy this SDK
NB : This SDK is only for Shopify store owner who installed Inkybay app of Shopify
Powered By : eFoli, LLC