SlideShare a Scribd company logo
1 of 28
Integration with Dropbox
What is Dropbox?
 Dropbox was founded in 2007
 Dropbox is a file hosting service operated by Dropbox, Inc. ,
headquartered in San Francisco, California
 It offers cloud storage, file synchronization, personal cloud,
and client software for Microsoft Windows, Mac OS
X, Linux, Android, iOS, BlackBerry OS, Windows
Phone and web browsers
 Dropbox allows users to create a special folder on their
computers, which Dropbox then synchronizes so that it
appears to be the same folder (with the same contents)
regardless of which computer is used to view it. Files placed
in this folder are also accessible via the Dropbox website and
mobile apps
Versions and Assumptions
 In this presentation, we are using
 Dropbox Cloud Connector 3.3.0
 Anypoint Studio
 Mule ESB Server 3.5.2
 Mule requester Module 1.2.0
 To integrate Dropbox with Mule ESB, you will need a
Dropbox account
 You will need to create a new Dropbox app under Dropbox
developer apps to be able to communicate with your
Dropbox account from Mule ESB application
 We will be using OAuth2 authentication to connect to
Dropbox using Mule ESB Dropbox Cloud Connector
Configuring Dropbox
 Go to https://www.dropbox.com/developers/apps
 Click on Create app button
 Click on Dropbox API app
 Select “Files and datastores” radio button
 Select “No - My app needs access to files already on Dropbox” radio button
 Select “All file types - My app needs access to a user's full Dropbox” radio
button
 Provide an app name and click on Create app button
 Provide a redirect URI for OAuth2 and click on Add button
 Make a note of the App key, App secret URI as these will be used in our Mule
application
 A sample screen shot is shown in the next slide
Configuring Global properties in
Mule
 Create a new Mule Application
 Click on Global Elements tab in
your main flow
 Click on Create Button
 Select Property Placeholder
component
 Provide your property file location
and click on OK
Configuring Dropbox
Connector
 Click on Global Elements tab in your main flow
 Click on Create Button
 Select Dropbox under Connector Configuration group
 Add your Dropbox App Key value to App Key text box
 Add your Dropbox Secret value to App Secret text box
 Click on Oauth tab and specify domain, local port, remote port and path
values. These values should be same as provided in Redirect URL during
Dropbox configuration
 A screen shot and sample XML configuration is shown in the next slide
Mule Flow for Dropbox
Authentication
 Configure a flow as shown in the below picture
 The XML configuration for this flow is given in the next slide
 If the app authorizes to Dropbox app successfully, the connector returns two flow
variables to Mule ESB flow which are “_oauthVerifier” and “OAuthAccessTokenId”
 Using Choice router, we are checking weather the flow received a valid
“OAuthAccessTokenId” or not and based on the response we are determining the
success or failure of the Dropbox authorization
 Deploy your Mule application
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 Dropbox will ask you to authorize your new app to connect to Dropbox as shown
below. Below screen will be prompted every time you run the app
 Click on Allow button and you should see a message printed on your browser as
“Authorization is successful”
Mule Flow for retrieving Dropbox Account Info
 Let’s extend the previous authorize flow and use the authentication
token to retrieve the logged in user account information from Dropbox.
 Change your Mule flow as per the following flow picture
 The XML configuration for the flow is as follows
 In this flow, we have used get-account operation provided by Dropbox connector
to retrieve the logged in user details and print them on the browser using Object
to JSON message transformer
 Deploy your app
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 You should now see the logged in user details printed on your browser in JSON
format
Mule Flow for downloading a File
 Modify your previous flow as per the following picture
 The XML configuration for this flow is given in the next slide
 Deploy your Mule application
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 A message should be printed on your browser as “File downloaded successfully”
 You should now see a file downloaded on your system at the given folder
location
Mule Flow for uploading a file
 Modify your previous flow as per the following picture
 Observe that we are using Mule Requestor module to read a file in the
middle of the flow. This component is not available by default and hence
you need to install this from Help -> Install New Software
 The XML configuration for this flow is given in the next slide
 Deploy your Mule application
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 A message should be printed on your browser as “File uploaded successfully”
 A new file should now be uploaded on your Dropbox at the specified path
Mule Flow for deleting a file
 Modify your previous flow as per the following picture
 The XML configuration for this flow is given in the next slide
 Deploy your Mule application
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 A message should be printed on your browser as “File deleted successfully”. In my
code I am using a file name which already exists on my Dropbox. If the files does
not exist, application will throw an error
 Once the flow execution completes, the specified file will be deleted from
Dropbox
Mule flow for creating a folder
 Modify your previous flow as per the following picture
 The XML configuration for this flow is given in the next slide
 Deploy your Mule application
 Hit the following URL on the browser
http://localhost:2222/dropboxcloudconnect
 A message should be printed on your browser as “Folder Created successfully”
 A new folder should now be created on your Dropbox at the specified path
Conclusion
 Mule ESB Dropbox connector provides an easy way to
connect to Dropbox cloud using OAuth2 authentication and
allows performing several operations
 The latest Dropbox connector is simpler to use compared to
the previous version of Dropbox connectors
 Dropbox Connector is available for Mule ESB community
edition
 Mule Request module allows to retrieve a file in the middle
of the flow and is very easy to use
 You can use Dropbox connector like FTP connector in your
application to upload files directly on Dropbox cloud storage

More Related Content

What's hot

What's hot (19)

Mule esb - How to connect to a MySql Database in 5 minutes
Mule esb - How to connect to a MySql Database in 5 minutesMule esb - How to connect to a MySql Database in 5 minutes
Mule esb - How to connect to a MySql Database in 5 minutes
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copy
 
My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1
 
Https service mule
Https service muleHttps service mule
Https service mule
 
Deploying and running mule standalone
Deploying and running mule standaloneDeploying and running mule standalone
Deploying and running mule standalone
 
Installing mule
Installing muleInstalling mule
Installing mule
 
Example mule
Example muleExample mule
Example mule
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
 
Using ajax in mule
Using ajax in muleUsing ajax in mule
Using ajax in mule
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Web application with mule
Web application with muleWeb application with mule
Web application with mule
 
Salesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSalesforce Integration using Mule ESB
Salesforce Integration using Mule ESB
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
 
Rest security with oauth 2.0
Rest security with oauth 2.0Rest security with oauth 2.0
Rest security with oauth 2.0
 
Elm, the runtime error killer
Elm, the runtime error killerElm, the runtime error killer
Elm, the runtime error killer
 
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methodsVerify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
 
Mule data bases
Mule data basesMule data bases
Mule data bases
 
Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
 
Mule maven
Mule mavenMule maven
Mule maven
 

Viewers also liked

דיבור חדש 32
דיבור חדש 32דיבור חדש 32
דיבור חדש 32
Erez Nahum
 
דיבור חדש 52
דיבור חדש 52 דיבור חדש 52
דיבור חדש 52
Erez Nahum
 
דיבור חדש גיליון 20
דיבור חדש גיליון 20דיבור חדש גיליון 20
דיבור חדש גיליון 20
Erez Nahum
 
דיבור חדש
דיבור חדש דיבור חדש
דיבור חדש
Erez Nahum
 

Viewers also liked (16)

דיבור חדש 32
דיבור חדש 32דיבור חדש 32
דיבור חדש 32
 
Sell on The Beautyst marketplace with Lengow
Sell on The Beautyst marketplace with LengowSell on The Beautyst marketplace with Lengow
Sell on The Beautyst marketplace with Lengow
 
Newsay g17
Newsay g17Newsay g17
Newsay g17
 
דיבור חדש 52
דיבור חדש 52 דיבור חדש 52
דיבור חדש 52
 
Boosting probabilistic graphical model inference by incorporating prior knowl...
Boosting probabilistic graphical model inference by incorporating prior knowl...Boosting probabilistic graphical model inference by incorporating prior knowl...
Boosting probabilistic graphical model inference by incorporating prior knowl...
 
דיבור חדש גיליון 20
דיבור חדש גיליון 20דיבור חדש גיליון 20
דיבור חדש גיליון 20
 
« χρηματοπιστωτικό σύστημα και εναλλακτικά δίκτυα χρηματοδότησης της οικονομί...
« χρηματοπιστωτικό σύστημα και εναλλακτικά δίκτυα χρηματοδότησης της οικονομί...« χρηματοπιστωτικό σύστημα και εναλλακτικά δίκτυα χρηματοδότησης της οικονομί...
« χρηματοπιστωτικό σύστημα και εναλλακτικά δίκτυα χρηματοδότησης της οικονομί...
 
דיבור חדש
דיבור חדש דיבור חדש
דיבור חדש
 
Running mule standalone
Running mule standaloneRunning mule standalone
Running mule standalone
 
ABIDI CORIZAN (Adult Cold Tablet) Marketing Strategy
ABIDI CORIZAN (Adult Cold Tablet) Marketing StrategyABIDI CORIZAN (Adult Cold Tablet) Marketing Strategy
ABIDI CORIZAN (Adult Cold Tablet) Marketing Strategy
 
Scatter gather flow in mule
Scatter gather flow in muleScatter gather flow in mule
Scatter gather flow in mule
 
Reducing the dimensionality of data with neural networks
Reducing the dimensionality of data with neural networksReducing the dimensionality of data with neural networks
Reducing the dimensionality of data with neural networks
 
TestEC2016-2(Answer)
TestEC2016-2(Answer)TestEC2016-2(Answer)
TestEC2016-2(Answer)
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
BJT - Model
BJT - ModelBJT - Model
BJT - Model
 
AGENCY LUMAscape
AGENCY LUMAscapeAGENCY LUMAscape
AGENCY LUMAscape
 

Similar to Integration with dropbox

Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
pradeepfdo
 

Similar to Integration with dropbox (20)

Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
 
Integration with dropbox using mule esb
Integration with dropbox using mule esbIntegration with dropbox using mule esb
Integration with dropbox using mule esb
 
Dropbox with Mule
Dropbox with MuleDropbox with Mule
Dropbox with Mule
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
 
Mule ESB Dropbox connector
Mule ESB Dropbox connectorMule ESB Dropbox connector
Mule ESB Dropbox connector
 
Dropbox connector Mule ESB Integration
Dropbox connector Mule ESB IntegrationDropbox connector Mule ESB Integration
Dropbox connector Mule ESB Integration
 
Sharing Resources - Mule
Sharing Resources - MuleSharing Resources - Mule
Sharing Resources - Mule
 
Dropbox to Sharepoint
Dropbox to SharepointDropbox to Sharepoint
Dropbox to Sharepoint
 
Dropbox to SharePoint Migration Guide for IT Admins
Dropbox to SharePoint Migration Guide for IT AdminsDropbox to SharePoint Migration Guide for IT Admins
Dropbox to SharePoint Migration Guide for IT Admins
 
Dropbox to Sharepoint
Dropbox to SharepointDropbox to Sharepoint
Dropbox to Sharepoint
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
 
New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectors
 
Dropbox to Google Shared Drive Migration
Dropbox to Google Shared Drive Migration Dropbox to Google Shared Drive Migration
Dropbox to Google Shared Drive Migration
 
Dropbox to Google Shared Drive Migration
Dropbox to Google Shared Drive MigrationDropbox to Google Shared Drive Migration
Dropbox to Google Shared Drive Migration
 
DB-GSD MIgration.pdf
DB-GSD MIgration.pdfDB-GSD MIgration.pdf
DB-GSD MIgration.pdf
 
WordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop GuideWordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop Guide
 
Dropbox
DropboxDropbox
Dropbox
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Spring Boot with Microsoft Azure Integration.pdf
Spring Boot with Microsoft Azure Integration.pdfSpring Boot with Microsoft Azure Integration.pdf
Spring Boot with Microsoft Azure Integration.pdf
 
cc.pdf
cc.pdfcc.pdf
cc.pdf
 

More from Son Nguyen

More from Son Nguyen (20)

Wsdl connector introduction
Wsdl connector introductionWsdl connector introduction
Wsdl connector introduction
 
Android intergrate with mule
Android intergrate with muleAndroid intergrate with mule
Android intergrate with mule
 
Mule flow overview
Mule flow overviewMule flow overview
Mule flow overview
 
Mule flow and filter
Mule flow and filterMule flow and filter
Mule flow and filter
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
 
Spring security integrate with mule
Spring security integrate with muleSpring security integrate with mule
Spring security integrate with mule
 
Message processor in mule
Message processor in muleMessage processor in mule
Message processor in mule
 
Expression language in mule
Expression language in muleExpression language in mule
Expression language in mule
 
Mule with data weave
Mule with data weaveMule with data weave
Mule with data weave
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler mule
 
Composite source in bound and out-bound
Composite source in bound and out-boundComposite source in bound and out-bound
Composite source in bound and out-bound
 
Batch job processing
Batch job processingBatch job processing
Batch job processing
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Finance connectors with mule
Finance connectors with muleFinance connectors with mule
Finance connectors with mule
 
Google drive connection
Google drive connectionGoogle drive connection
Google drive connection
 
Using properties in mule
Using properties in muleUsing properties in mule
Using properties in mule
 
Mule integrate with microsoft
Mule integrate with microsoftMule integrate with microsoft
Mule integrate with microsoft
 
Jms queue
Jms queueJms queue
Jms queue
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectors
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Integration with dropbox

  • 2. What is Dropbox?  Dropbox was founded in 2007  Dropbox is a file hosting service operated by Dropbox, Inc. , headquartered in San Francisco, California  It offers cloud storage, file synchronization, personal cloud, and client software for Microsoft Windows, Mac OS X, Linux, Android, iOS, BlackBerry OS, Windows Phone and web browsers  Dropbox allows users to create a special folder on their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder are also accessible via the Dropbox website and mobile apps
  • 3. Versions and Assumptions  In this presentation, we are using  Dropbox Cloud Connector 3.3.0  Anypoint Studio  Mule ESB Server 3.5.2  Mule requester Module 1.2.0  To integrate Dropbox with Mule ESB, you will need a Dropbox account  You will need to create a new Dropbox app under Dropbox developer apps to be able to communicate with your Dropbox account from Mule ESB application  We will be using OAuth2 authentication to connect to Dropbox using Mule ESB Dropbox Cloud Connector
  • 4. Configuring Dropbox  Go to https://www.dropbox.com/developers/apps  Click on Create app button  Click on Dropbox API app
  • 5.  Select “Files and datastores” radio button  Select “No - My app needs access to files already on Dropbox” radio button  Select “All file types - My app needs access to a user's full Dropbox” radio button  Provide an app name and click on Create app button  Provide a redirect URI for OAuth2 and click on Add button  Make a note of the App key, App secret URI as these will be used in our Mule application  A sample screen shot is shown in the next slide
  • 6.
  • 7. Configuring Global properties in Mule  Create a new Mule Application  Click on Global Elements tab in your main flow  Click on Create Button  Select Property Placeholder component  Provide your property file location and click on OK
  • 8. Configuring Dropbox Connector  Click on Global Elements tab in your main flow  Click on Create Button  Select Dropbox under Connector Configuration group  Add your Dropbox App Key value to App Key text box  Add your Dropbox Secret value to App Secret text box  Click on Oauth tab and specify domain, local port, remote port and path values. These values should be same as provided in Redirect URL during Dropbox configuration  A screen shot and sample XML configuration is shown in the next slide
  • 9.
  • 10. Mule Flow for Dropbox Authentication  Configure a flow as shown in the below picture  The XML configuration for this flow is given in the next slide
  • 11.  If the app authorizes to Dropbox app successfully, the connector returns two flow variables to Mule ESB flow which are “_oauthVerifier” and “OAuthAccessTokenId”  Using Choice router, we are checking weather the flow received a valid “OAuthAccessTokenId” or not and based on the response we are determining the success or failure of the Dropbox authorization
  • 12.  Deploy your Mule application  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  Dropbox will ask you to authorize your new app to connect to Dropbox as shown below. Below screen will be prompted every time you run the app  Click on Allow button and you should see a message printed on your browser as “Authorization is successful”
  • 13. Mule Flow for retrieving Dropbox Account Info  Let’s extend the previous authorize flow and use the authentication token to retrieve the logged in user account information from Dropbox.  Change your Mule flow as per the following flow picture
  • 14.  The XML configuration for the flow is as follows
  • 15.  In this flow, we have used get-account operation provided by Dropbox connector to retrieve the logged in user details and print them on the browser using Object to JSON message transformer  Deploy your app  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  You should now see the logged in user details printed on your browser in JSON format
  • 16. Mule Flow for downloading a File  Modify your previous flow as per the following picture  The XML configuration for this flow is given in the next slide
  • 17.
  • 18.  Deploy your Mule application  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  A message should be printed on your browser as “File downloaded successfully”  You should now see a file downloaded on your system at the given folder location
  • 19. Mule Flow for uploading a file  Modify your previous flow as per the following picture  Observe that we are using Mule Requestor module to read a file in the middle of the flow. This component is not available by default and hence you need to install this from Help -> Install New Software  The XML configuration for this flow is given in the next slide
  • 20.
  • 21.  Deploy your Mule application  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  A message should be printed on your browser as “File uploaded successfully”  A new file should now be uploaded on your Dropbox at the specified path
  • 22. Mule Flow for deleting a file  Modify your previous flow as per the following picture  The XML configuration for this flow is given in the next slide
  • 23.
  • 24.  Deploy your Mule application  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  A message should be printed on your browser as “File deleted successfully”. In my code I am using a file name which already exists on my Dropbox. If the files does not exist, application will throw an error  Once the flow execution completes, the specified file will be deleted from Dropbox
  • 25. Mule flow for creating a folder  Modify your previous flow as per the following picture  The XML configuration for this flow is given in the next slide
  • 26.
  • 27.  Deploy your Mule application  Hit the following URL on the browser http://localhost:2222/dropboxcloudconnect  A message should be printed on your browser as “Folder Created successfully”  A new folder should now be created on your Dropbox at the specified path
  • 28. Conclusion  Mule ESB Dropbox connector provides an easy way to connect to Dropbox cloud using OAuth2 authentication and allows performing several operations  The latest Dropbox connector is simpler to use compared to the previous version of Dropbox connectors  Dropbox Connector is available for Mule ESB community edition  Mule Request module allows to retrieve a file in the middle of the flow and is very easy to use  You can use Dropbox connector like FTP connector in your application to upload files directly on Dropbox cloud storage