Tuesday, October 9, 2012

Mule & Box.net integration


For box.net you need to first install the box.net plugin in mule. For this purpose you need to add an eclipse update site
Link for the same.
http://repository.mulesoft.org/connectors/releases/3.3.1add the box.net plugin only.

The mule-config.xml file for the box.net connector is available at link
No other files are needed as the code for the same is written in groovy and is a part of the mule-config.xml

Examples of services available are
1.       localhost:8081/integrate/ticket
2.       localhost:8081/integrate/auth
3.       localhost:8081/integrate/upload?fileName=D:/deleteme/d/int_person.csv
4.       localhost:8081/integrate/download?fileName=int_personNew.csv&id=3444993848
5.       localhost:8081/integrate/delete?id=3444931678
6.       localhost:8081/integrate/list

After the ticket service (step 1) you need to authenticate the user on the box.net site url using
https://www.box.com/api/1.0/auth/{your ticket} 
This is similar to an oauth kind of authentication