That article is demonstrating how to export all your users' team memberships. Perhaps it's not what you asked for. Perhaps you are asking how to get all your teams listed, maybe along with their members?
Anyways, please let us know if that article was helpful, and if not then what your exact requirement is.
Thanks again,
Sagi