added call_api method and new request methods