private function _groupUrl($groupId, $subPath = '')
    {
        $egid = rawurlencode($groupId);

        if (empty($egid)) {
            throw new \InvalidArgumentException("Empty group ID given");
        }

        return $this->_url('/groups/' . $egid . $subPath);
    }
private function _groupUrl($groupId, $subPath = '')
    {
        $egid = rawurlencode($groupId);

        if (empty($egid)) {
            throw new \InvalidArgumentException("Empty group ID given");
        }

        return $this->_url('/groups/' . $egid . $subPath);
    }
private function _groupUrl ( $ groupId , $ subPath = '' ) { $ egid = rawurlencode ( $ groupId ) ; if ( empty ( $ egid ) ) { throw new \ InvalidArgumentException ( "Empty group ID given" ) ; } return $ this -> _url ( '/groups/' . $ egid . $ subPath ) ; }
Builds an endpoint URL for the given group and sub-path.

@param string $groupId a group identifier
@param string $subPath additional sub-path

@return string a complete URL

@throws \InvalidArgumentException if given an invalid group ID
Builds an endpoint URL for the given group and sub - path .