@Deprecated
    public static GitLabApi login(ApiVersion apiVersion, String url, String username, String password) throws GitLabApiException {
        return (GitLabApi.login(apiVersion, url, username, password, false));
    }
@ Deprecated public static GitLabApi login ( ApiVersion apiVersion , String url , String username , String password ) throws GitLabApiException { return ( GitLabApi . login ( apiVersion , url , username , password , false ) ) ; }
<p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
using returned private token and the specified GitLab API version.</p>

<strong>NOTE</strong>: For GitLab servers 10.2 and above this will utilize OAUTH2 for login.  For GitLab servers prior to
10.2, the Session API login is utilized.

@param apiVersion the ApiVersion specifying which version of the API to use
@param url GitLab URL
@param username user name for which private token should be obtained
@param password password for a given {@code username}
@return new {@code GitLabApi} instance configured for a user-specific token
@throws GitLabApiException GitLabApiException if any exception occurs during execution
@deprecated As of release 4.8.7, will be removed in 4.9.0