use of org.datatransferproject.transfer.mastodon.social.MastodonActivityExport in project data-transfer-project by google.
the class ManualTest method main.
public static void main(String[] args) throws Exception {
MastodonActivityExport exporter = new MastodonActivityExport();
UUID jobId = UUID.randomUUID();
CookiesAndUrlAuthData authData = new CookiesAndUrlAuthData(ImmutableList.of(ACCESS_TOKEN), HOST_URL);
ExportResult<SocialActivityContainerResource> result = exporter.export(jobId, authData, Optional.empty());
MastodonActivityImport mastodonActivityImport = new MastodonActivityImport();
mastodonActivityImport.importItem(jobId, EXECUTOR, authData, result.getExportedData());
}
Aggregations