Resolve URI

The resolveUri function accepts a Uniform Resource Identifier and resolves the dynamic content associated with the URI from Content Management using pre-configured credentials via the API Identifier.

Usage

The recommend source for URI’s is using the Content Management Asset URI format of the string.

Read The String input type for more information about this input type.

// Retrieve an asset data object and pretty print it
export default {
  async main(input, info) {
    const retrievedMatrixAsset = info.fns.resolveUri(input.matrixAsset);
  return `<pre>${JSON.stringify(retrievedMatrixAsset)}</pre>`;
  }
}