0

I want to be able to automate reading files from a one-drive link, or from SharePoint online.

I had seen a reference to using Camel-CMIS Using Apache Camel CMIS with Sharepoint 2013 which seemed to be what I wanted, but according to CMIS support for Sharepoint and OneDrive, this applies only to On-Prem SharePoint and I need to access online OneDrive/SharePoint as none of the sites I need to access are on-prem.

Is there another component or approach that can to do this in Camel?

Thanks!

Screwtape
  • 1,337
  • 2
  • 12
  • 27

1 Answers1

0

It seems as there is no camel component (yet) for OneDrive.

That being said, there are a few java clients, that make integrating OneDrive in java easier. Here are some examples:
https://github.com/nuxeo/onedrive-java-client
https://github.com/isac322/OneDrive-SDK-java

The best thing to do would be writing the Camel Component based one of those clients and adding it to the official camel repository.
Alternatively, you could use camel routes to do the whole process and then write plain java code where the OneDrive integration comes in.
I have done the same for other services, that only have a java client, but no camel integration.
The advantage is, that you still get all the awesome stuff, that camel brings (robust runnable, error handling, routing etc.)

For example:

from("direct:toOneDrive")
  .process(exchange -> {
    // Do the OneDrive stuff
  })
.to("direct:afterOneDrive");
Chris
  • 432
  • 3
  • 14