Added APIRequest class.