Skip to content

Instantly share code, notes, and snippets.

@allenmichael
Created March 1, 2018 00:12
Show Gist options
  • Select an option

  • Save allenmichael/53e64799c73214de3b694dba23da6652 to your computer and use it in GitHub Desktop.

Select an option

Save allenmichael/53e64799c73214de3b694dba23da6652 to your computer and use it in GitHub Desktop.
zia
BoxFile file = new BoxFile(serviceAccountClient, source.get("id").asText().intern());
OutputStream stream = new ByteArrayOutputStream();
file.download(stream);
// Insert Epi. code
String metadataTemplate = "productClassification";
String metadataField = "/partSku";
String partSku = ""; // Replace with Epi return part SKU.
file.createMetadata(metadataTemplate, new Metadata().add(metadataField, partSku));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment