Hi,
You can create ServiceAPI instance to call userService method like i have explained below:
ServiceAPI app42ServiceAPI = new ServiceAPI("APIKey","SecretKey");
UserService userService = app42ServiceAPI .buildUserService();
userService.createUser(................,.); // Pass the input parameter and run it.
Let me know if it helps.
Thanks.