diff --git a/base.go b/base.go index e7e4340..ea9338b 100644 --- a/base.go +++ b/base.go @@ -203,8 +203,8 @@ func (api *API) CallWithErrorParse(method string, params interface{}, result int // Login Calls "user.login" API method and fills api.Auth field. // This method modifies API structure and should not be called concurrently with other methods. -func (api *API) Login(user, password string) (auth string, err error) { - params := map[string]string{"user": user, "password": password} +func (api *API) Login(username, password string) (auth string, err error) { + params := map[string]string{"username": username, "password": password} response, err := api.CallWithError("user.login", params) if err != nil { return