Created
November 27, 2014 14:52
-
-
Save fditrapani/fdbf67854fcfc428d4fe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Set variables for our request | |
| $shop = "demo-shop"; | |
| $token = "SWplI7gKAckAlF9QfAvv9yrI3grYsSkw"; | |
| $query = array( | |
| "Content-type" => "application/json" // Tell Shopify that we're expecting a response in JSON format | |
| ); | |
| // Run API call to get all products | |
| $products = shopify_call($token, $shop, "/admin/products.json", array(), 'GET'); | |
| // Get response | |
| $products = $products['response']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment