initial api class

login method