refactor api sdk user methods
Include cordova library