Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{div:class=confluenceTableSmall}
|| Property || Mandatory || Description ||
| {{accessToken}} | {{true}} | The access token to make API requests for a specific Dropbox user |
| {{clientIdentifier}} | {{true}} | Name of the app registered to make API requests |
{div}

Del operation

Delete files on Dropbox.

Works only as Camel producer.

Below are listed the mandatory options for this operation:

Wiki Markup
{div:class=confluenceTableSmall}
|| Property || Mandatory || Description ||
| {{remotePath}} | {{true}} | Folder or file to delete on Dropbox |
{div}

Samples

from("direct:start").to("dropbox://del?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("mock:result");

Headers

The following headers are set on exchanges during message transport.

...

The component will use the message body as the document to be inserted. If the body is an instance of String, then it will be marshalled into a GSON object before insert. This means that the string must be valid JSON or the insert / update will fail. If the body is an instance of a com.google.gson.JsonElement then it will be inserted as is. Otherwise the producer will throw an exception of unsupported body type.

Samples

For example if you wish to consume all inserts, updates and deletes from a CouchDB instance running locally, on port 9999 then you could use the following:

...