Extract a method for making requests
Support more API methods