gwt/3.3/src/pubnub/api/Pubnub.java
/**
     * Here Now
     *
     * Load presence information from a channel
     *
     * @param String channel name.
     * @return JSONObject of here_now
     */
Here Now
Load presence information from a channel

@param String channel name.
Here Now Load presence information from a channel @param String channel name .
public JSONArray here_now(String channel) {
        List<String> url = new ArrayList<String>();
        url.add("v2");
        url.add("presence");
        url.add("sub_key");
        url.add(this.SUBSCRIBE_KEY);
        url.add("channel");
        url.add(channel);
        JSONArray response = _request(url);
        if (this.CIPHER_KEY.length() > 0) {
            PubnubCrypto pc = new PubnubCrypto(this.CIPHER_KEY);
            return pc.decryptJSONArray(response);
        } else {
            return response;
        }
    }
public JSONArray here_now ( String channel ) { List < String > url = new ArrayList < String > ( ) ; url . add ( "v2" ) ; url . add ( "presence" ) ; url . add ( "sub_key" ) ; url . add ( this . SUBSCRIBE_KEY ) ; url . add ( "channel" ) ; url . add ( channel ) ; JSONArray response = _request ( url ) ; if ( this . CIPHER_KEY . length ( ) > 0 ) { PubnubCrypto pc = new PubnubCrypto ( this . CIPHER_KEY ) ; return pc . decryptJSONArray ( response ) ; } else { return response ; } }
Here Now
 Load presence information from a channel
Here Now Load presence information from a channel
// Decrypt Messages