Trying to archive
Monday, November 2, 2015 at 05:41amI've grabbed a completion report and am looping through the packages to archive them.
I've tried the following:
RestClient client;
client = new RestClient("https://apps.e-signlive.com/api");
UrlTemplate template;
template = new UrlTemplate("https://apps.e-signlive.com/api");
String path = template.urlFor(UrlTemplate.PACKAGE_ID_PATH)
.replace("{packageId}", packageCompletionReport.getId())
.build();
String json = "{\"status\":\"ARCHIVED\"}";
try {
client.put(path, json);
} catch (RequestException e) {
throw new EslServerException("Unable to archive the package.", e);
} catch (Exception e) {
e.printStackTrace();
throw new EslException("Unable to archive the package. Exception: " + e.getMessage());
}
but I get an unauthorized error.
Do I need to set header for Authorization? If so how do I do it?
Thanks in advance for assistance
Reply to: Trying to archive
Monday, November 2, 2015 at 08:15amReply to: Trying to archive
Monday, November 2, 2015 at 08:43amReply to: Trying to archive
Monday, November 2, 2015 at 11:58amReply to: Trying to archive
Tuesday, November 3, 2015 at 04:12am