import com.hellosign.openapi.ApiClient; import com.hellosign.openapi.ApiException; import com.hellosign.openapi.Configuration; import com.hellosign.openapi.api.*; import com.hellosign.openapi.auth.HttpBasicAuth; import com.hellosign.openapi.model.*; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); // Configure HTTP basic authorization: api_key HttpBasicAuth api_key = (HttpBasicAuth) defaultClient .getAuthentication("api_key"); api_key.setUsername("YOUR_API_KEY"); // or, configure Bearer (JWT) authorization: oauth2 /* HttpBearerAuth oauth2 = (HttpBearerAuth) defaultClient .getAuthentication("oauth2"); oauth2.setBearerToken("YOUR_ACCESS_TOKEN"); */ SignatureRequestApi api = new SignatureRequestApi(defaultClient); String signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"; try { api.signatureRequestRemove(signatureRequestId); } catch (ApiException e) { System.err.println("Exception when calling AccountApi#accountCreate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }