use of org.datatransferproject.transfer.instagram.photos.InstagramPhotoExporter in project data-transfer-project by google.
the class InstagramTransferExtension method initialize.
@Override
public void initialize(ExtensionContext context) {
if (initialized) {
Monitor monitor = context.getMonitor();
monitor.severe(() -> "InstagramTransferExtension already initialized");
return;
}
ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
HttpTransport httpTransport = context.getService(HttpTransport.class);
exporter = new InstagramPhotoExporter(mapper, httpTransport);
initialized = true;
}
Aggregations