Mule integration with Box
-
Upload
ramakrishna-narkedamilli -
Category
Technology
-
view
399 -
download
0
Transcript of Mule integration with Box
Integrate MULE ESB with Box
By Ramakrishna Narkedamilli
Overview:
MuleSoft is a popular ESB technology to integrate Different on-premise and cloud applications for data exchange. Box is an online file sharing and personal cloud content management service for businesses. It’s a cloud based service that helps people and organizations share and collaborate the documents with colleagues, partners, and customers. The Box Mule connector allows developers to interact with Box to fetch any amount of data, any file and from anywhere on the web. Using connectivity to the Box API, developers can perform the CRUD operations along with other Box operations.
Instant access to the Box API enables businesses to create seamless integration between Box and other applications such as EchoSign, Autodesk, Zoho, ThinkFree, Scribd, Picnik, Zazzle, Twitter and Myxer.
Prerequisites:
Box Developer account. Box Developer account client ID and Client key. Mule AnyPoint Box connector.
Box Developer Account Setup:
For this sample purpose, we need developer Box account. We can sign up for free at https://developers.box.com/
Client ID and Client Secret Values
Box developer account provides various options to control the communication between Box api to other applications. To access the full features of Box and connect with it, we need client ID and client Secret values. These values available under box developer account.
Mule Anypoint Box Connector:
Box is a cloud file storage and collaboration application. Mule Box connector gives the options to integrate Box to perform he below options
User Management. CRUD for Documents Events
MULE ESB Flows for Box Integration
The below Mule application is used to create folder under Box using Mule Anypoint Microsoft Box connector after performing authorization.
Steps to be followed for integrating ‘Box’ with MuleSoft Applications:
Install the Box Connector in Anypoint Studio (3.5 and above)http://repository.mulesoft.org/connectors/releases/3.5
Create a new Anypoint Studio Project and Flow to create new folder. Configure the Box global element in global elements section by providing
the client Id and client secret values and setup the oauth callback for authorization.
In the flow first add HTTP inbound endpoint to trigger the service.
Add Box endpoints in the flow for authorization and folder creation referring to Box global connector.
Now at this position we are integrated with Box to perform actions.
Running and Testing the Application:
Right-click on the application Run Mule Application. Open the browser and hit the url http://localhost:8082/CreateFolder. Service will take the control to box for authorization and grant the
permission. On the successful authorization, folder will be created under Box account.
Open the Box, now you’re able to see new folder in case of no errors.
Folder creation Under Box
Benefits:
Seamless integration running in the background No point-to-point integration required Store and share any amount of data. Send event notifications. Bi-directional data communication between applications and Box. Access any amount of data, at any time, from anywhere on the web
THANKS YOU By Ramakrishna Narkedamilli