Api is not defined

function getContent() {
  var oDocument = Api.GetDocument();
  var aDocElements = oDocument.GetContent(true);
  return aDocElements;
}

Api is not defined 报错

Hello @wwjje

Please provide us with the expected behavior you are trying to achieve.