| @@ 653-661 (lines=9) @@ | ||
| 650 | * @throws ClientExceptions |
|
| 651 | * @throws Exception |
|
| 652 | */ |
|
| 653 | public function getUsers() |
|
| 654 | { |
|
| 655 | $result = $this->client->sendRequest("/json-api/list_users", "GET", []); |
|
| 656 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
| 657 | return $result['data']['users']; |
|
| 658 | } |
|
| 659 | ||
| 660 | return []; |
|
| 661 | } |
|
| 662 | ||
| 663 | /** |
|
| 664 | * Get a list of locked accounts. |
|
| @@ 674-682 (lines=9) @@ | ||
| 671 | * @throws ClientExceptions |
|
| 672 | * @throws Exception |
|
| 673 | */ |
|
| 674 | public function getLockedAccounts() |
|
| 675 | { |
|
| 676 | $result = $this->client->sendRequest("/json-api/listlockedaccounts", "GET", []); |
|
| 677 | if ( ! empty($result['metadata']) && $result['metadata']['result'] === 1) { |
|
| 678 | return $result['data']['account']; |
|
| 679 | } |
|
| 680 | ||
| 681 | return []; |
|
| 682 | } |
|
| 683 | ||
| 684 | /** |
|
| 685 | * Get a list of suspended accounts |
|