Implement api method for login history