The URI in the example didn't work; on inspection of the code it looks like the protocol and port are required to make the examples work.