The code sample found on this page uses the Players service, which is incorrect (it also doesn’t even define Players anywhere). It should be using UserService instead.
The code sample uses 8000 as an example UserId, but that id isn’t available. This means that the code sample’s result variable is empty. If the result variable is empty, then nothing gets printed in the code sample.
The UserId should be something like 1 instead of 8000.