Code Samples Disclaimer
This document may include code samples for demonstration and illustration purposes. These code samples are provided without guarantee or warranty. It is the responsibility of end-user, or an agency contracted by end-user, to ensure any custom code functions as expected.
This is a proof-of-concept Node.js script that uses the Get All Placements endpoint from the Widgets API to request all the widget placements for a store and save the data to JSON files on disk.
To see an example of the widget save files check the examples in the /data directory.