Skip to content

Instantly share code, notes, and snippets.

@fditrapani
Created November 27, 2014 14:55
Show Gist options
  • Save fditrapani/59dd987a3dd743869b74 to your computer and use it in GitHub Desktop.
Save fditrapani/59dd987a3dd743869b74 to your computer and use it in GitHub Desktop.
// Modify product data
$modify_data = array(
"product" => array(
"id" => $product_id,
"title" => "My New Title"
)
);
// Run API call to modify the product
$modified_product = shopify_call($token, $shop, "/admin/products/" . $product_id . ".json", $modify_data, 'PUT');
// Storage response
$modified_product_response = $modified_product['response'];
@inazeem
Copy link

inazeem commented Jun 2, 2018

You have used curl in all your example and for actual api call you have used something else. Can you please put a curl example.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment