Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDE59118A4 for ; Tue, 8 Jul 2014 11:18:37 +0000 (UTC) Received: (qmail 61554 invoked by uid 500); 8 Jul 2014 11:18:37 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 61505 invoked by uid 500); 8 Jul 2014 11:18:37 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 61495 invoked by uid 99); 8 Jul 2014 11:18:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 11:18:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 11:18:35 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D46D02388860 for ; Tue, 8 Jul 2014 11:18:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r915468 - in /websites/production/camel/content: cache/main.pageCache dropbox.html Date: Tue, 08 Jul 2014 11:18:15 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140708111815.D46D02388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Tue Jul 8 11:18:15 2014 New Revision: 915468 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/dropbox.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/dropbox.html ============================================================================== --- websites/production/camel/content/dropbox.html (original) +++ websites/production/camel/content/dropbox.html Tue Jul 8 11:18:15 2014 @@ -101,12 +101,18 @@

Operation

Description

del

deletes files or directories on Dropbox

get

download files from Dropbox

move

move files from folders on Dropbox

put

upload files on Dropbox

search

search files on Dropbox based on string queries

Operations require additional options to work, some are mandatory for the specific operation.

Options

In order to work with Dropbox API you need to obtain an accessToken and a clientIdentifier
You can refer to the Dropbox documentation that expalins how to get them  

Below are listed the mandatory options for all operations:

 

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

-

Del operation

Delete files on Dropbox.

Works only as Camel producer.

Below are listed the mandatory options for this operation:

+

Del operation

Delete files on Dropbox.

Works only as Camel producer.

Below are listed the options for this operation:

Property

Mandatory

Description

remotePath

true

Folder or file to delete on Dropbox

Samples

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

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

Result Message Headers

The following headers are set on message result:

Property

Value

DELETED_PATH

name of the path deleted on dropbox

Result Message Body

The following objects are set on message body result:

Object type

Description

String

name of the path deleted on dropbox

+

Get (download) operation

Download files from Dropbox.

Works as Camel producer or Camel consumer.

Below are listed the options for this operation:

+

Property

Mandatory

Description

remotePath

true

Folder or file to download from Dropbox

+

Samples

from("direct:start").to("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1/file1.tar.gz").to("file:///home/kermit/?fileName=file1.tar.gz");

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

from("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("file:///home/kermit/");

Result Message Headers

The following headers are set on message result:

+

Property

Value

DELETED_PATH

name of the path deleted on dropbox

+

Result Message Body

The following objects are set on message body result:

+

Object type

Description

String

name of the path deleted on dropbox