App cordova consume api