Added Dextop.initApi method.