...
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");
|
In the bar header we have the Facebook search string we want to execute in public posts, so we need to assign this value to the CamelFacebook.query header.The fileId header has the Box file id , so its assigned to the CamelFacebook.fileId header in the following route:
Code Block |
from("direct:foo")
.setHeader("CamelFacebookCamelBox.queryfileId", header("barfileId"))
.to("facebookbox://postsfiles/download")
.to("file://...");
|