Skip to content

Instantly share code, notes, and snippets.

@jamiemtdwyer
Last active August 29, 2022 12:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jamiemtdwyer/e109bcab1ff187f6341b7077904e47d6 to your computer and use it in GitHub Desktop.
Save jamiemtdwyer/e109bcab1ff187f6341b7077904e47d6 to your computer and use it in GitHub Desktop.
<?php
// Create a product:
$productData = array(
'product' => array(
'title' => "Shopify Logo T-Shirt",
'price' => 19.99));
$shopifyResponse = performShopifyRequest(
$shop, $accessToken, 'products', $productData, 'POST'
);
// $shopifyResponse contains the new product data as an associative array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment