META

ApiClientService

Если вы хотите работать со внутренними api Прямо из META

<script id="res" type="meta/js">
function main(ApiClientService, vm) {
  var apiclient = ApiClientService.buildClient("accountmanagement", "v1beta1");
  vm.data = apiclient.request("POST", "budget-order/get", {
    "access_scope": {
      "client_id": "28",
      "agency_account": "[email protected]",
      "operation_id": MetaUtils.uuid.randomUUID()
    },
    "engine": "GOOGLE_ADS",
    "account": "9012273876"
  }).getMap();
}
</script>

<elem>
  <tpl>
    {{res|json}}
  </tpl>
</elem>