<?php
require 'vendor/autoload.php';
use Shopify\ShopifyClient;
$client = new ShopifyClient($access_token, "yourshop.myshopify.com");
$products = $client->products->readList();
$newOrder = ['line_items' => [['title' => 'cool', 'price' => 4]]];
$response = $client->orders->create($newOrder);
$response = $client->orders->read($orderId);
$object = $response->parsedResponse();
$orders = $client->orders->readList();
foreach ($order in $orders->parsedResponse()) {
var_dump($order->id);
}
$response = $client->orders->update($orderId, ["note" => "cool order"]);
$response = $client->orders->readCount(["status" => "open"]);
$response = $client->orders->delete($orderId);
phpunit
./vendor/bin/phpcs ./src/ --standard=PSR2
./vendor/bin/phpcs ./test/ --standard=PSR2