Soundtrack API | Example app
This is a sample app demonstrating how to implement against the Soundtrack API. The purpose of this app is to get you started, so for the sake of simplicity this is a frontend app.
Please note that you should not build an app where the secrets can be found in the source code. If we find secrets that are exposed, we will block these immediately. We suggest handling the code in a backend and then implement whatever authentication layer that your app needs.
- A Soundtrack subscription. Please see www.soundtrackyourbrand.com to sign up
- API credentials. Request them via this page
- nodejs (Note: node version >=4 <=9) and yarn
The app displays your brands and their sound zones. You can see what is playing on each zone. Both the sound zone data and the now playing data will be updated over web sockets. You can also find paginated queries and how to setup subscriptions.
Running the app
yarn yarn run get-schema yarn run relay # or to start a watcher: yarn run relay --watch REACT_APP_API_CREDENTIALS=your_token yarn start