Account.php 782 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\extra\ocean;
  3. class Account extends Base
  4. {
  5. /**
  6. * 获取升级版巨量引擎工作台下账户列表
  7. * https://open.oceanengine.com/labels/7/docs/1829550825614739?origin=left_nav
  8. * @param string $orgId
  9. * @param string $type
  10. * @param int $page
  11. * @param int $size
  12. * @return array
  13. */
  14. public function getAccountList(string $orgId = "",string $type = "AD",int $page = 1,int $size = 100): array
  15. {
  16. $param = [
  17. "enterprise_organization_id" => $orgId,
  18. "account_source" => $type,
  19. "page" => $page,
  20. "page_size" => $size
  21. ];
  22. return $this->curlGetApi("2/ebp/advertiser/list/",$param);
  23. }
  24. }