| 1 | <?php |
||
| 21 | class UserAPI |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Client instance. |
||
| 25 | * |
||
| 26 | * @var \BenatEspina\StackExchangeApiClient\Client |
||
| 27 | */ |
||
| 28 | protected $client; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The prefix of users API requests. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $prefix = '/users'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | * |
||
| 40 | * @param \BenatEspina\StackExchangeApiClient\Client $client that will be used to connect the server |
||
| 41 | */ |
||
| 42 | public function __construct(Client $client) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get all users, in alphabetical order. |
||
| 49 | * |
||
| 50 | * More info: https://api.stackexchange.com/docs/users |
||
| 51 | * |
||
| 52 | * @param string[] $params QueryString parameter(s), by default, the basic to work: |
||
| 53 | * array('site' => 'stackoverflow', 'sort' => 'name', 'order' => 'desc') |
||
| 54 | * |
||
| 55 | * @return array<BenatEspina\StackExchangeApiClient\Model\Interfaces\UserInterface> |
||
| 56 | */ |
||
| 57 | public function getByIds($ids, |
||
| 62 | } |
||
| 63 |