api code complete,not debug