BD phonegap api