Created
November 29, 2021 18:52
-
-
Save iamcanadian1973/644387819cba2edac0947560d79f55e0 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
$.ajax({ | |
url: 'https://__SHOPIFYNAME__.myshopify.com/api/2021-10/graphql.json', | |
method: 'POST', | |
headers: { | |
'X-Shopify-Storefront-Access-Token': '__TOKEN__', | |
'Content-Type': 'application/graphql', | |
}, | |
data: `query { | |
products(first:10){ | |
edges { | |
node { | |
title | |
} | |
} | |
} | |
}`, | |
}) | |
.done(function(data) { | |
console.log(data); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment