Instantiate the required library class
$http = new \Romby\Box\Http\Adapters\GuzzleHttpAdapter(new \GuzzleHttp\Client())
$users = new \Romby\Box\Services\Users($http);/* @param string $token the OAuth Token.
* @return array the user.
*/
$users->me($token);/* Not Implemented *//* @param string $token the OAuth Token.
* @return array the users.
*/
$users->all($token);/* @param string $token the OAuth Token.
* @param string $login the email address this user uses to login
* @param string $name the name of this user.
* @param array $properties the properties of the user.
* @return array the new user.
*/
$users->create($token, $login, $name, $properties = []);/* @param string $token the OAuth Token.
* @param int $id the ID of the user.
* @return array the user's information.
*/
$users->get($token, $id);/* @param string $token the OAuth Token.
* @param int $id the ID of the user.
* @param array $properties the properties to update.
* @return array the updated user.
*/
$users->update($token, $id, $properties);/* @param string $token the OAuth Token.
* @param int $id the ID of the user.
* @return void
*/
$users->delete($token, $id);/* Not Implemented *//* Not Implemented *//* Not Implemented *//* @param string $token the OAuth Token.
* @param int $id the ID of the user.
* @return array the email aliases.
*/
$users->getAllEmailAliases($token, $id);/* @param string $token the OAuth Token.
* @param int $id the ID of the user.
* @param string $alias the email alias.
* @return array the response.
*/
$users->createEmailAlias($token, $id, $alias);/* Not Implemented */