java/srcPubnubApi/com/pubnub/api/PubnubCore.java
/**
     * Get the list of groups in the namespace
     *
     * @param namespace name
     * @param callback to invoke
     */
Get the list of groups in the namespace
@param namespace name
@param callback to invoke
Get the list of groups in the namespace @param namespace name @param callback to invoke
public void channelGroupListGroups(String namespace, Callback callback) {
        final Callback cb = getWrappedCallback(callback);
        String[] url;
        if (namespace != null) {
            url = new String[]{getPubnubUrl(), "v1", "channel-registration", "sub-key",
                    this.SUBSCRIBE_KEY, "namespace", namespace, "channel-group"};
        } else {
            url = new String[]{getPubnubUrl(), "v1", "channel-registration", "sub-key",
                    this.SUBSCRIBE_KEY, "channel-group"};
        }
        Hashtable parameters = PubnubUtil.hashtableClone(params);
        HttpRequest hreq = new HttpRequest(url, parameters, new ResponseHandler() {
            public void handleResponse(HttpRequest hreq, String response) {
                invokeCallback("", response, "payload", cb, 0);
             }
            public void handleError(HttpRequest hreq, PubnubError error) {
                cb.errorCallback(null, error);
            }
        });
        _request(hreq, nonSubscribeManager);
    }
public void channelGroupListGroups ( String namespace , Callback callback ) { final Callback cb = getWrappedCallback ( callback ) ; String [ ] url ; if ( namespace != null ) { url = new String [ ] { getPubnubUrl ( ) , "v1" , "channel-registration" , "sub-key" , this . SUBSCRIBE_KEY , "namespace" , namespace , "channel-group" } ; } else { url = new String [ ] { getPubnubUrl ( ) , "v1" , "channel-registration" , "sub-key" , this . SUBSCRIBE_KEY , "channel-group" } ; } Hashtable parameters = PubnubUtil . hashtableClone ( params ) ; HttpRequest hreq = new HttpRequest ( url , parameters , new ResponseHandler ( ) { public void handleResponse ( HttpRequest hreq , String response ) { invokeCallback ( "" , response , "payload" , cb , 0 ) ; } public void handleError ( HttpRequest hreq , PubnubError error ) { cb . errorCallback ( null , error ) ; } } ) ; _request ( hreq , nonSubscribeManager ) ; }
Get the list of groups in the namespace
 @param namespace name
 @param callback to invoke
Get the list of groups in the namespace @param namespace name @param callback to invoke