Created
March 1, 2018 00:12
-
-
Save allenmichael/53e64799c73214de3b694dba23da6652 to your computer and use it in GitHub Desktop.
zia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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