SlideShare a Scribd company logo
1 of 14
 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. In this
blog post, a step by step procedure of
connecting to Dropbox cloud using Mule ESB
Dropbox Cloud Connector is shown.
 For this illustration, 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, we will need a
Dropbox account
 We need to create a new Dropbox app under
Dropbox developer apps in order to communicate
with the Dropbox account from Mule ESB
application
 We will be using OAuth2 authentication to connect
to Dropbox using Mule ESB Dropbox Cloud
Connector
 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, Redirect URI as
these will be used in our Mule application to connect to
Dropbox cloud. A sample screen of a drop box app is
given below.
 Create a new Mule Application
 Click on Global Elements tab in the main flow
 Click on Create Button
 Select Property Placeholder component
 Provide the property file location and click on
OK. Our property file should have at least two
properties for app key and app secret which
will be used later in the Dropbox connector
configuration. A sample screen shot and XML
configuration is as follows:
 <context:property-placeholder
location="file:${mule_home}/conf/mule-
app.properties"/>
 Click on Global Elements tab in the main flow
 Click on Create Button
 Select Dropbox under Connector Configuration
group
 Add the Dropbox App Key value to App Key text
box
 Add the 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 URI
during Dropbox app configuration. A sample
screen shot and XML configuration is as follows.
 <dropbox:config name="DropboxConfig"
appKey="${DropboxAppkey}"
appSecret="${DropboxAppSecret}"
doc:name="Dropbox"> <dropbox:oauth-
callback-config domain="localhost"
localPort="2200" remotePort="2200"
path="afterauthorize" /></dropbox:config>
 Configure a flow as shown below
 <flow name="dropboxflow" doc:name="dropboxflow">
<http:inbound-endpoint exchange-pattern="request-
response" host="localhost" port="2222"
path="dropboxcloudconnect" doc:name="HTTP"/>
<dropbox:authorize config-ref="DropboxConfig"
doc:name="AuthorizeDropboxConnection" /> <choice
doc:name="IsOAuthAccessTokenIdAvailble"> <when
expression="flowVars.OAuthAccessTokenId != null">
<logger message="Authorization is successful"
level="INFO" doc:name="LogAuthSuccessful" /> <set-
payload value="Authorization is successful"
doc:name="SetAuthSuccessPayload" /> </when>
<otherwise> <logger message="Authorization to
Dropbox Failed" level="INFO" doc:name="LogAuthFailed"
/> <set-payload value="Authorization to Dropbox Failed"
doc:name="SetAuthFailedPayload" /> </otherwise>
</choice></flow>
 If the app authorizes in to the Dropbox app
successfully, the connector returns two flow
variables to Mule ESB flow which are
“_oauthVerifier” and “OAuthAccessTokenId”
 Using Choice router, we can check if a flow
received is a valid “OAuthAccessTokenId” or
not and based on the response, we can
determine the success or failure of the
Dropbox authorization
 Deploy the Mule application
 Hit the following URL on the browser
◦ http://localhost:2222/dropboxcloudconnect
 Dropbox will ask us to authorize your new
app to connect to Dropbox.
 Click on Allow button and we should be
able to see a message printed on the
browser as “Authorization is successful”

More Related Content

What's hot

Mule Concur Connector
Mule Concur ConnectorMule Concur Connector
Mule Concur ConnectorAnkush Sharma
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlightshimajareddys
 
Why Mulesoft ?
Why Mulesoft ?Why Mulesoft ?
Why Mulesoft ?Bui Kiet
 
Mule ESB
Mule ESBMule ESB
Mule ESBniravn
 
Miracle mulesoft tech_cloud_hub
Miracle mulesoft tech_cloud_hubMiracle mulesoft tech_cloud_hub
Miracle mulesoft tech_cloud_hubkishore ippili
 
Oracle connector
Oracle connectorOracle connector
Oracle connectorMohammed246
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841ppts123456
 
Mule google connectors
Mule  google connectorsMule  google connectors
Mule google connectorsD.Rajesh Kumar
 
Exposing Web Service (CXF) With Mule ESB
Exposing Web Service (CXF) With Mule ESBExposing Web Service (CXF) With Mule ESB
Exposing Web Service (CXF) With Mule ESBJitendra Bafna
 

What's hot (17)

Mule Concur Connector
Mule Concur ConnectorMule Concur Connector
Mule Concur Connector
 
Mule soa
Mule soaMule soa
Mule soa
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Mule cloudhub
Mule cloudhubMule cloudhub
Mule cloudhub
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlights
 
Mule salesforce
Mule  salesforceMule  salesforce
Mule salesforce
 
Mule oracle connectors
Mule oracle connectorsMule oracle connectors
Mule oracle connectors
 
Why Mulesoft ?
Why Mulesoft ?Why Mulesoft ?
Why Mulesoft ?
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Miracle mulesoft tech_cloud_hub
Miracle mulesoft tech_cloud_hubMiracle mulesoft tech_cloud_hub
Miracle mulesoft tech_cloud_hub
 
Mule connectors
Mule  connectorsMule  connectors
Mule connectors
 
Oracle connector
Oracle connectorOracle connector
Oracle connector
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841
 
Mule anypoint studio
Mule anypoint studioMule anypoint studio
Mule anypoint studio
 
Mule google connectors
Mule  google connectorsMule  google connectors
Mule google connectors
 
Exposing Web Service (CXF) With Mule ESB
Exposing Web Service (CXF) With Mule ESBExposing Web Service (CXF) With Mule ESB
Exposing Web Service (CXF) With Mule ESB
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 

Similar to Integration with dropbox using mule esb

Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropboxSon Nguyen
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBRupesh Sinha
 
Dropbox connector Mule ESB Integration
Dropbox connector Mule ESB IntegrationDropbox connector Mule ESB Integration
Dropbox connector Mule ESB IntegrationAnilKumar Etagowni
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Servicepradeepfdo
 
Sharing Resources - Mule
Sharing Resources - MuleSharing Resources - Mule
Sharing Resources - MuleAnil Kumar V
 
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 Connectorsrtretola
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction senthil0809
 
Amazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionAmazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionPaolo latella
 
Android/iPhone/Blackberry Web Service Connector
Android/iPhone/Blackberry Web Service ConnectorAndroid/iPhone/Blackberry Web Service Connector
Android/iPhone/Blackberry Web Service ConnectorAkash Kava
 
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...Amazon Web Services
 
Running Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic BeanstalkRunning Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic BeanstalkAmazon Web Services
 
Flex3中文教程
Flex3中文教程Flex3中文教程
Flex3中文教程yiditushe
 
Serverless solution architecture in AWS
Serverless solution architecture in AWSServerless solution architecture in AWS
Serverless solution architecture in AWSRuncy Oommen
 
AWS April Webinar Series - Getting Started with Amazon EC2 Container Service
AWS April Webinar Series - Getting Started with Amazon EC2 Container ServiceAWS April Webinar Series - Getting Started with Amazon EC2 Container Service
AWS April Webinar Series - Getting Started with Amazon EC2 Container ServiceAmazon Web Services
 

Similar to Integration with dropbox using mule esb (20)

Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropbox
 
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
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
 
Sharing Resources - Mule
Sharing Resources - MuleSharing Resources - Mule
Sharing Resources - Mule
 
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
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction
 
Amazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionAmazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to production
 
Shipping logs to splunk from a container in aws howto
Shipping logs to splunk from a container in aws howtoShipping logs to splunk from a container in aws howto
Shipping logs to splunk from a container in aws howto
 
Android/iPhone/Blackberry Web Service Connector
Android/iPhone/Blackberry Web Service ConnectorAndroid/iPhone/Blackberry Web Service Connector
Android/iPhone/Blackberry Web Service Connector
 
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
 
Running Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic BeanstalkRunning Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic Beanstalk
 
Flex3中文教程
Flex3中文教程Flex3中文教程
Flex3中文教程
 
Serverless solution architecture in AWS
Serverless solution architecture in AWSServerless solution architecture in AWS
Serverless solution architecture in AWS
 
Building a chatbot – step by step
Building a chatbot – step by stepBuilding a chatbot – step by step
Building a chatbot – step by step
 
AWS April Webinar Series - Getting Started with Amazon EC2 Container Service
AWS April Webinar Series - Getting Started with Amazon EC2 Container ServiceAWS April Webinar Series - Getting Started with Amazon EC2 Container Service
AWS April Webinar Series - Getting Started with Amazon EC2 Container Service
 
Dropbox
DropboxDropbox
Dropbox
 

More from sivachandra mandalapu (20)

Mock component in munit
Mock component in munitMock component in munit
Mock component in munit
 
Jms selector
Jms selectorJms selector
Jms selector
 
Sftplite
SftpliteSftplite
Sftplite
 
Object store
Object storeObject store
Object store
 
How to use SFTP
How to use SFTPHow to use SFTP
How to use SFTP
 
How to use secure property placeholder
How to use secure property placeholderHow to use secure property placeholder
How to use secure property placeholder
 
Specifying a default exception strategy
Specifying a default exception strategySpecifying a default exception strategy
Specifying a default exception strategy
 
Defining global exception strategies
Defining global exception strategiesDefining global exception strategies
Defining global exception strategies
 
Reference exception strategy
Reference exception strategyReference exception strategy
Reference exception strategy
 
Validate json schema
Validate json schemaValidate json schema
Validate json schema
 
Validation
ValidationValidation
Validation
 
Property place holder
Property place holderProperty place holder
Property place holder
 
Collection aggregator
Collection aggregatorCollection aggregator
Collection aggregator
 
Cloud hub deployment
Cloud hub deploymentCloud hub deployment
Cloud hub deployment
 
Securing api with_o_auth2
Securing api with_o_auth2Securing api with_o_auth2
Securing api with_o_auth2
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applications
 
Setting up organization with api access
Setting up organization with api accessSetting up organization with api access
Setting up organization with api access
 
API gateway setup
API gateway setupAPI gateway setup
API gateway setup
 
Splitter
SplitterSplitter
Splitter
 
Expression
ExpressionExpression
Expression
 

Recently uploaded

Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 

Recently uploaded (20)

Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 

Integration with dropbox using mule esb

  • 1.
  • 2.  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. In this blog post, a step by step procedure of connecting to Dropbox cloud using Mule ESB Dropbox Cloud Connector is shown.
  • 3.  For this illustration, 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, we will need a Dropbox account  We need to create a new Dropbox app under Dropbox developer apps in order to communicate with the Dropbox account from Mule ESB application  We will be using OAuth2 authentication to connect to Dropbox using Mule ESB Dropbox Cloud Connector
  • 4.  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, Redirect URI as these will be used in our Mule application to connect to Dropbox cloud. A sample screen of a drop box app is given below.
  • 5.
  • 6.  Create a new Mule Application  Click on Global Elements tab in the main flow  Click on Create Button  Select Property Placeholder component  Provide the property file location and click on OK. Our property file should have at least two properties for app key and app secret which will be used later in the Dropbox connector configuration. A sample screen shot and XML configuration is as follows:
  • 8.  Click on Global Elements tab in the main flow  Click on Create Button  Select Dropbox under Connector Configuration group  Add the Dropbox App Key value to App Key text box  Add the 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 URI during Dropbox app configuration. A sample screen shot and XML configuration is as follows.
  • 9.
  • 10.  <dropbox:config name="DropboxConfig" appKey="${DropboxAppkey}" appSecret="${DropboxAppSecret}" doc:name="Dropbox"> <dropbox:oauth- callback-config domain="localhost" localPort="2200" remotePort="2200" path="afterauthorize" /></dropbox:config>
  • 11.  Configure a flow as shown below
  • 12.  <flow name="dropboxflow" doc:name="dropboxflow"> <http:inbound-endpoint exchange-pattern="request- response" host="localhost" port="2222" path="dropboxcloudconnect" doc:name="HTTP"/> <dropbox:authorize config-ref="DropboxConfig" doc:name="AuthorizeDropboxConnection" /> <choice doc:name="IsOAuthAccessTokenIdAvailble"> <when expression="flowVars.OAuthAccessTokenId != null"> <logger message="Authorization is successful" level="INFO" doc:name="LogAuthSuccessful" /> <set- payload value="Authorization is successful" doc:name="SetAuthSuccessPayload" /> </when> <otherwise> <logger message="Authorization to Dropbox Failed" level="INFO" doc:name="LogAuthFailed" /> <set-payload value="Authorization to Dropbox Failed" doc:name="SetAuthFailedPayload" /> </otherwise> </choice></flow>
  • 13.  If the app authorizes in to the Dropbox app successfully, the connector returns two flow variables to Mule ESB flow which are “_oauthVerifier” and “OAuthAccessTokenId”  Using Choice router, we can check if a flow received is a valid “OAuthAccessTokenId” or not and based on the response, we can determine the success or failure of the Dropbox authorization
  • 14.  Deploy the Mule application  Hit the following URL on the browser ◦ http://localhost:2222/dropboxcloudconnect  Dropbox will ask us to authorize your new app to connect to Dropbox.  Click on Allow button and we should be able to see a message printed on the browser as “Authorization is successful”