Trying to get sheet data using the smartsheet java sdk. This is the code I am using -
Smartsheet smartsheet = new SmartsheetBuilder()
.setAccessToken(accessToken)
.build();
smartsheet.setAssumedUser(emailAddress);
smartsheet.sheetResources().getSheet(sheetId, null, null, null, null, null,null, null);
This is the error I am getting -
java.net.UnknownHostException: No such host is known (api.smartsheet.com)
When I make a get request on postman using the same access token it works.
I don't know much about Java, but based on a bit of research I'd suspect you may be getting that error due to your internal proxy. According to the (accepted) answer in this other Stack Overflow post, you can setup a proxy in the Smartsheet Java SDK by using the same process that Smartsheet's QR Code sample uses.