Sample API - GluedIn
Sample API Call
Sample API call in Kotlin Class

private fun signInApiCall() {

	val api = UserAuthenticationInteractor()

val req = SignInReq("password", "email@email.com", "firebaseToken", "deviceId", "android")

	api.validateUser(req) { th: Throwable?, res: SignInResponse? ->

	Toast.makeText(this, "Response: " + res?.message, Toast.LENGTH_SHORT).show()

        }

    }
Sample API call in Java Class

private void signInApiCall() {

SignInReq req = new SignInReq("password", "email@email.com", "firebaseToken", "deviceId", "android");

UserAuthenticationInteractor authenticationInterceptor = new UserAuthenticationInteractor();

authenticationInterceptor.validateUser(req, (Throwable th, SignInResponse res) -> {

Toast.makeText(JavaActivity.this, "Response: " + res.getMessage(), Toast.LENGTH_SHORT).show();

	 return Unit.INSTANCE;

     });

 }