Mule integration with Box

14
Integrate MULE ESB with Box By Ramakrishna Narkedamilli

Transcript of Mule integration with Box

Page 1: Mule integration with Box

Integrate MULE ESB with Box

By Ramakrishna Narkedamilli

Page 2: Mule integration with Box

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.

Page 3: Mule integration with Box

Prerequisites:

Box Developer account. Box Developer account client ID and Client key. Mule AnyPoint Box connector.

Page 4: Mule integration with Box

Box Developer Account Setup:

For this sample purpose, we need developer Box account. We can sign up for free at https://developers.box.com/

Page 5: Mule integration with Box

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.

Page 6: Mule integration with Box

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

Page 7: Mule integration with Box

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.

Page 8: Mule integration with Box

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

Page 9: Mule integration with Box

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.

Page 10: Mule integration with Box

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.

Page 11: Mule integration with Box

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.

Page 12: Mule integration with Box

Folder creation Under Box

Page 13: Mule integration with 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

Page 14: Mule integration with Box

THANKS YOU By Ramakrishna Narkedamilli