diff --git a/src/DirectAdmin/Context/ResellerContext.php b/src/DirectAdmin/Context/ResellerContext.php index bd806ff..546c14c 100644 --- a/src/DirectAdmin/Context/ResellerContext.php +++ b/src/DirectAdmin/Context/ResellerContext.php @@ -166,6 +166,29 @@ public function getUsers() return BaseObject::toObjectArray($this->invokeApiGet('SHOW_USERS'), User::class, $this); } + + /** + * Get the user that belongs to the domain + * + * @param $domain + * @return array + */ + public function getDomainOwner( $domain ) + { + return $this->invokeApiGet('DOMAIN_OWNERS', ['domain' => $domain ] ); + } + + /** + * Get the user that belongs to the domain + * + * @param $domain + * @return array + */ + public function getDomainOwners( ) + { + return $this->invokeApiGet('DOMAIN_OWNERS' ); + } + /** * get reseller statistics / active package settings *