Before you can make calls to the WRAPI services, you first must obtain a key and and keyId from Radioplayer.
The package is intended to be run on a node application. To install it, type this command in a Terminal window or a command prompt:
npm install radioplayer-wrapi-sdk
or
yarn add radioplayer-wrapi-sdk
After you install the SDK, you must make the SDK available to your app and configure your environment. Configuration details include your client ID and secret for your app and an optional wrapi endpoint override.
const wrapi = require("radioplayer-wrapi-sdk").default;
const wp = new wrapi({ keyId: "your key id", key: "your key" });
After you install the SDK, you must make the SDK available to your app and configure your environment. Configuration details include your client ID and secret for your app and an optional wrapi endpoint override.
const wrapi = require("radioplayer-wrapi-sdk").default;
const wp = new wrapi({ keyId: "your key id", key: "your key" });
That part should be covered here.