gwt/3.3/src/pubnub/api/Pubnub.java
/**
     * History
     *
     * Load history from a channel.
     *
     * @param HashMap
     *            <String, Object> containing channel name, limit history count
     *            response.
     * @return JSONArray of history.
     */
History
Load history from a channel.

@param HashMap
 containing channel name, limit history count
response.
@return JSONArray of history.
History Load history from a channel . @param HashMap containing channel name limit history count response . @return JSONArray of history .
public JSONArray history(HashMap<String, Object> args) {
        String channel = (String) args.get("channel");
        int limit = Integer.parseInt(args.get("limit").toString());
        List<String> url = new ArrayList<String>();
        url.add("history");
        url.add(this.SUBSCRIBE_KEY);
        url.add(channel);
        url.add("0");
        url.add(Integer.toString(limit));
        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 history ( HashMap < String , Object > args ) { String channel = ( String ) args . get ( "channel" ) ; int limit = Integer . parseInt ( args . get ( "limit" ) . toString ( ) ) ; List < String > url = new ArrayList < String > ( ) ; url . add ( "history" ) ; url . add ( this . SUBSCRIBE_KEY ) ; url . add ( channel ) ; url . add ( "0" ) ; url . add ( Integer . toString ( limit ) ) ; JSONArray response = _request ( url ) ; if ( this . CIPHER_KEY . length ( ) > 0 ) { PubnubCrypto pc = new PubnubCrypto ( this . CIPHER_KEY ) ; return pc . decryptJSONArray ( response ) ; } else { return response ; } }
History
 Load history from a channel.
History Load history from a channel .
// Decrypt Messages