A Pen by Jamie Barton on CodePen.
Created
July 6, 2018 19:26
-
-
Save AJSturrock/c7a8afde0c29ea5e9c4f8bca68e59375 to your computer and use it in GitHub Desktop.
Moltin products with main_image
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
<script src="https://unpkg.com/@moltin/[email protected]"></script> | |
<pre id="result"></pre> |
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
const Moltin = moltin.gateway({ | |
client_id: 'j6hSilXRQfxKohTndUuVrErLcSJWP15P347L6Im0M4' | |
}) | |
Moltin.Products.With('main_image').All().then(products => { | |
document.querySelector("#result").innerHTML = JSON.stringify(products, '\t', 2) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment