You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/10/14 10:25:19 UTC
[GitHub] [camel-karaf] essobedo commented on pull request #199: CAMEL-16484: camel-dropbox - Bump to Dropbox 5.4.2
essobedo commented on PR #199:
URL: https://github.com/apache/camel-karaf/pull/199#issuecomment-1278811379
Tested successfully with the next routes:
```
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xsi:schemaLocation="
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<!-- blueprint property placeholders, that will use etc/dropbox.cfg as the properties file -->
<cm:property-placeholder persistent-id="dropbox" update-strategy="reload">
</cm:property-placeholder>
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="timer:myTimer?period=10000" />
<setBody><simple>Hello from timer at ${header.firedTime}</simple></setBody>
<setHeader name="CamelDropboxUploadMode">
<constant>force</constant>
</setHeader>
<to uri="dropbox://put?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath={{workDir}}/file.txt" />
<log message="After put ${body}"/>
<to uri="dropbox://get?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath={{workDir}}/file.txt" />
<log message="After get ${body}"/>
<to uri="dropbox://move?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath={{workDir}}/file.txt&newRemotePath={{workDir}}-new/file.txt" />
<log message="After move ${body}"/>
<to uri="dropbox://search?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath=/camel-test2&query=index" />
<log message="After search ${body}"/>
<to uri="dropbox://del?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath={{workDir}}-new/file.txt" />
<log message="After del ${body}"/>
</route>
<route>
<from uri="dropbox://get?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath=/camel-test2/index.md" />
<log message="After get consumer ${body}"/>
</route>
<route>
<from uri="dropbox://search?accessToken={{accessToken}}&expireIn={{expireIn}}&refreshToken={{refreshToken}}&apiKey={{apiKey}}&apiSecret={{apiSecret}}&remotePath=/camel-test2&query=index" />
<log message="After search consumer ${body}"/>
</route>
</camelContext>
</blueprint>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org