@@ 612-620 (lines=9) @@ | ||
609 | * @throws ClientExceptions |
|
610 | * @throws Exception |
|
611 | */ |
|
612 | public function getUsers() |
|
613 | { |
|
614 | $result = $this->client->sendRequest("/json-api/list_users", "GET", []); |
|
615 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
616 | return $result['data']['users']; |
|
617 | } |
|
618 | ||
619 | return []; |
|
620 | } |
|
621 | ||
622 | /** |
|
623 | * Get a list of locked accounts. |
|
@@ 633-641 (lines=9) @@ | ||
630 | * @throws ClientExceptions |
|
631 | * @throws Exception |
|
632 | */ |
|
633 | public function getLockedAccounts() |
|
634 | { |
|
635 | $result = $this->client->sendRequest("/json-api/listlockedaccounts", "GET", []); |
|
636 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
637 | return $result['data']['account']; |
|
638 | } |
|
639 | ||
640 | return []; |
|
641 | } |
|
642 | ||
643 | /** |
|
644 | * Get a list of suspended accounts |