hellosign / hellosign-java-sdk

A Java SDK for the HelloSign API.
MIT License
13 stars 27 forks source link

java.lang.IllegalArgumentException: No enum constant com.hellosign.sdk.resource.support.types.ApiAppOauthScopeType.api_app_access #158

Open camplegal-cm opened 2 years ago

camplegal-cm commented 2 years ago

apiApp = client.getApiApp(clientId);

This line above produces the following exception.

And the class in question below does not seem to have the Enum constant:

`public enum ApiAppOauthScopeType { basic_account_info, request_signature, access_reusable_forms, manage_docs, access_docs, send_docs, signatures;

private ApiAppOauthScopeType() {
}

}`

Exception trace: com.hellosign.sdk.HelloSignException: java.lang.IllegalArgumentException: No enum constant com.hellosign.sdk.resource.support.types.ApiAppOauthScopeType.api_app_access at com.hellosign.sdk.resource.support.ApiAppOauth.(ApiAppOauth.java:47) at com.hellosign.sdk.resource.ApiApp.(ApiApp.java:55) at com.hellosign.sdk.HelloSignClient.getApiApp(HelloSignClient.java:996) at com.test.hellosign.service.HelloSignBaseService.init(HelloSignBaseService.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I am using the latest version of the Java SDK. Please let me know if I am missing anything. Thanks.