lib/SteamCondenser/Community/SteamId.php
public function fetchGroups() {
        $params = ['steamid' => $this->getSteamId64()];
        $result = WebApi::getJSONObject('ISteamUser', 'GetUserGroupList', 1, $params);

        $this->groups = [];
        foreach ($result->response->groups as $groupData) {
            $this->groups[] = SteamGroup::create($groupData->gid, false);
        }

        return $this->groups;
    }
public function fetchGroups() {
        $params = ['steamid' => $this->getSteamId64()];
        $result = WebApi::getJSONObject('ISteamUser', 'GetUserGroupList', 1, $params);

        $this->groups = [];
        foreach ($result->response->groups as $groupData) {
            $this->groups[] = SteamGroup::create($groupData->gid, false);
        }

        return $this->groups;
    }
Fetches the groups this user is member of

Uses the ISteamUser/GetUserGroupList interface.

@return SteamGroup[] The groups of this user
@see getGroups()