21Aug2014 2:55 AM API integration

Implemented code for api integration