The UserService provides endpoints for common user management tasks:
The UserService
provides endpoints for common user management tasks:
- Registration
- Login
- Logout
- Password Reset
In order to use any of the endpoints in the SDK which require authentication the login
endpoint needs to be called. This will store a users access_token
and add it to every subsequent request automatically within the SDK. Call the logout
endpoint and all these credentials will be cleared from the SDK preventing any further calls to the Karhoo API.
Examples
iOS
let userService = Karhoo.getUserService()
Android
val userService = KarhooApi.userService