com.docusign.esign.api.DataFeedApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.
package com.docusign.esign.api;
import com.docusign.esign.client.ApiClient;
import com.docusign.esign.client.ApiException;
import com.docusign.esign.client.Configuration;
import com.docusign.esign.client.Pair;
import com.docusign.esign.model.*;
/** DataFeedApi class. */
public class DataFeedApi {
private ApiClient apiClient;
/** DataFeedApi. */
public DataFeedApi() {
this(Configuration.getDefaultApiClient());
}
/** DataFeedApi. */
public DataFeedApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* getApiClient Method.
*
* @return ApiClient
*/
public ApiClient getApiClient() {
return apiClient;
}
/** setApiClient Method. */
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Retrieves a Datafeed element by Id..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param dataFeedElementId (required)
* @throws ApiException if fails to make API call
*/
public void getDataFeedElement(String accountId, String dataFeedElementId) throws ApiException {
Object localVarPostBody = "{}";
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException(
400, "Missing the required parameter 'accountId' when calling getDataFeedElement");
}
// verify the required parameter 'dataFeedElementId' is set
if (dataFeedElementId == null) {
throw new ApiException(
400,
"Missing the required parameter 'dataFeedElementId' when calling getDataFeedElement");
}
// create path and map variables
String localVarPath =
"/v2.1/accounts/{accountId}/data_feeds/data/{dataFeedElementId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll(
"\\{" + "dataFeedElementId" + "\\}",
apiClient.escapeString(dataFeedElementId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"docusignAccessCode"};
apiClient.invokeAPI(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy