How would I use the Get Steam Groups Function?

How would I use the Get Steam Groups Function to make a Steam Group Joiner, something like L4D2 used?