add callAPI() to simplify call remote API, tested with mock server-side json API.