Refactoring api_request.rb, doraemon_question.rb