code: public com.squareup.okhttp.Call initializeWorkspaceAsync(String code, String redirectUri, String state, String authorization, final ApiCallback<ApiSuccessResponse> callback) throws ApiException {
  
          ProgressResponseBody.ProgressListener progressListener = null;
          ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
  
          if (callback != null) {
              progressListener = new ProgressResponseBody.ProgressListener() {
                  @Override
                  public void update(long bytesRead, long contentLength, boolean done) {
                      callback.onDownloadProgress(bytesRead, contentLength, done);
                  }
              };
  
              progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
                  @Override
                  public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
                      callback.onUploadProgress(bytesWritten, contentLength, done);
                  }
              };
          }
  
          com.squareup.okhttp.Call call = initializeWorkspaceValidateBeforeCall(code, redirectUri, state, authorization, progressListener, progressRequestListener);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          apiClient.executeAsync(call, localVarReturnType, callback);
          return call;
      }
docs: Get and register an auth token (asynchronously)
  Retrieve the authorization token using the authorization code. Workspace then registers the token and prepares the user&#39;s environment.
  @param code The authorization code. You must include this parameter for the [Authorization Code Grant flow](/reference/authentication/). (optional)
  @param redirectUri The same redirect URI you used in the initial login step. You must include this parameter for the [Authorization Code Grant flow](/reference/authentication/). (optional)
  @param state The state parameter provide by the auth service on redirect that should be used to validate. This parameter must be provided if the include_state parameter is sent with the /login request. (optional)
  @param authorization Bearer authorization. For example, \&quot;Authorization&amp;colon; Bearer access_token\&quot;. (optional)
  @param callback The callback to be executed when the API call finishes
  @return The request call
  @throws ApiException If fail to process the API call, e.g. serializing the request body object