@Test public void testNullListIntegrations() throws RemoteApiException { IntegrationSettingsList list = apiClient.listIntegrations(MOCK_SESSION, 0, 10); assertNull(list); }
public IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit) throws RemoteApiException { checkAuthToken(sessionToken); String path = "/v1/configuration"; Map<String, String> headerParams = new HashMap<>(); headerParams.put(SESSION_TOKEN_HEADER_PARAM, sessionToken); Map<String, String> queryParams = new HashMap<>(); queryParams.put(OFFSET_QUERY_PARAM, String.valueOf(offset)); queryParams.put(LIMIT_QUERY_PARAM, String.valueOf(limit)); return apiClient.doGet(path, headerParams, queryParams, IntegrationSettingsList.class); }
IntegrationApiClient extends BasePodApiClient { public IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit) throws RemoteApiException { checkAuthToken(sessionToken); String path = "/v1/configuration"; Map<String, String> headerParams = new HashMap<>(); headerParams.put(SESSION_TOKEN_HEADER_PARAM, sessionToken); Map<String, String> queryParams = new HashMap<>(); queryParams.put(OFFSET_QUERY_PARAM, String.valueOf(offset)); queryParams.put(LIMIT_QUERY_PARAM, String.valueOf(limit)); return apiClient.doGet(path, headerParams, queryParams, IntegrationSettingsList.class); } }
IntegrationApiClient extends BasePodApiClient { public IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit) throws RemoteApiException { checkAuthToken(sessionToken); String path = "/v1/configuration"; Map<String, String> headerParams = new HashMap<>(); headerParams.put(SESSION_TOKEN_HEADER_PARAM, sessionToken); Map<String, String> queryParams = new HashMap<>(); queryParams.put(OFFSET_QUERY_PARAM, String.valueOf(offset)); queryParams.put(LIMIT_QUERY_PARAM, String.valueOf(limit)); return apiClient.doGet(path, headerParams, queryParams, IntegrationSettingsList.class); } IntegrationApiClient(HttpApiClient apiClient, LogMessageSource logMessage); }
IntegrationApiClient extends BasePodApiClient { public IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit) throws RemoteApiException { checkAuthToken(sessionToken); String path = "/v1/configuration"; Map<String, String> headerParams = new HashMap<>(); headerParams.put(SESSION_TOKEN_HEADER_PARAM, sessionToken); Map<String, String> queryParams = new HashMap<>(); queryParams.put(OFFSET_QUERY_PARAM, String.valueOf(offset)); queryParams.put(LIMIT_QUERY_PARAM, String.valueOf(limit)); return apiClient.doGet(path, headerParams, queryParams, IntegrationSettingsList.class); } IntegrationApiClient(HttpApiClient apiClient, LogMessageSource logMessage); IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit); IntegrationSettings getIntegrationById(String sessionToken, String integrationId); IntegrationSettings getIntegrationByType(String sessionToken, String integrationType); IntegrationSettings createIntegration(String sessionToken,
      IntegrationSubmissionCreate integration); IntegrationSettings updateIntegration(String sessionToken, String integrationId,
      IntegrationSubmissionCreate integration); IntegrationSettings activateIntegration(String sessionToken, String integrationId); IntegrationSettings deactivateIntegration(String sessionToken, String integrationId); }
IntegrationApiClient extends BasePodApiClient { public IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit) throws RemoteApiException { checkAuthToken(sessionToken); String path = "/v1/configuration"; Map<String, String> headerParams = new HashMap<>(); headerParams.put(SESSION_TOKEN_HEADER_PARAM, sessionToken); Map<String, String> queryParams = new HashMap<>(); queryParams.put(OFFSET_QUERY_PARAM, String.valueOf(offset)); queryParams.put(LIMIT_QUERY_PARAM, String.valueOf(limit)); return apiClient.doGet(path, headerParams, queryParams, IntegrationSettingsList.class); } IntegrationApiClient(HttpApiClient apiClient, LogMessageSource logMessage); IntegrationSettingsList listIntegrations(String sessionToken, int offset, int limit); IntegrationSettings getIntegrationById(String sessionToken, String integrationId); IntegrationSettings getIntegrationByType(String sessionToken, String integrationType); IntegrationSettings createIntegration(String sessionToken,
      IntegrationSubmissionCreate integration); IntegrationSettings updateIntegration(String sessionToken, String integrationId,
      IntegrationSubmissionCreate integration); IntegrationSettings activateIntegration(String sessionToken, String integrationId); IntegrationSettings deactivateIntegration(String sessionToken, String integrationId);  }