Websites in Purple DS can access Purple DS JavaScript API and use it to retrieve and use information on the app, publication, pages, etc.

Example:


function onPurpleLoad() {

    purple.metadata.getMetadata("app_id", function (value) {

        …

    });

}

You can find information on Purple DS JavaScript API in the technical documentation.