how to use phonegap3 API,s