@@ 620-628 (lines=9) @@ | ||
617 | * @throws ClientExceptions |
|
618 | * @throws Exception |
|
619 | */ |
|
620 | public function getUsers() |
|
621 | { |
|
622 | $result = $this->client->sendRequest("/json-api/list_users", "GET", []); |
|
623 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
624 | return $result['data']['users']; |
|
625 | } |
|
626 | ||
627 | return []; |
|
628 | } |
|
629 | ||
630 | /** |
|
631 | * Get a list of locked accounts. |
|
@@ 641-649 (lines=9) @@ | ||
638 | * @throws ClientExceptions |
|
639 | * @throws Exception |
|
640 | */ |
|
641 | public function getLockedAccounts() |
|
642 | { |
|
643 | $result = $this->client->sendRequest("/json-api/listlockedaccounts", "GET", []); |
|
644 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
645 | return $result['data']['account']; |
|
646 | } |
|
647 | ||
648 | return []; |
|
649 | } |
|
650 | ||
651 | /** |
|
652 | * Get a list of suspended accounts |