The README docs are using path-based addressing which is a deprecated mode. AWS is moving to virtual host-based addressing, eventually retiring the former mode.
Perhaps the docs should be changed to reflect this so that the examples will be based on a client which has been set up all the way with a specific bucket in the virtual host.