THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The following route uploads new files to the Box.com user's root folder.:
Code Block |
---|
from("file:...") .to("box://files/upload/inBody=fileUploadRequest); |
To poll, your The following route polls user's account for updates:
Code Block |
---|
from("box://poll-events/poll?streamPosition=-1&streamType=all&limit=100") .to("bean:blah"); |
Searching using a producer with dynamic options from header.
In the bar header we have the Facebook search string we want to execute in public posts, so we need to assign this value The fileId header has the Box file id , so its assigned to the CamelFacebook.query header.fileId header in the following route:
Code Block |
---|
from("direct:foo") .setHeader("CamelFacebookCamelBox.queryfileId", header("barfileId")) .to("box://files/download") .to("facebookfile://posts..."); |