Created
November 27, 2014 14:55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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