Added user info and call api code