java/src1/com/pubnub/api/PubnubCoreShared.java
/** ULS audit by channel and auth key
     * @param channel
     * @param auth_key
     * @param callback
     */
ULS audit by channel and auth key
@param channel
@param auth_key
@param callback
ULS audit by channel and auth key @param channel @param auth_key @param callback
public void pamAudit(final String channel, String auth_key,
                         Callback callback) {
        final Callback cb = getWrappedCallback(callback);
        Hashtable parameters = PubnubUtil.hashtableClone(params);
        String signature = "0";
        int timestamp = (int) ((new Date().getTime()) / 1000);
        if (this.SECRET_KEY.length() == 0) {
            callback.errorCallback(channel,
                                   getErrorObject(PNERROBJ_SECRET_KEY_MISSING, 4));
            return;
        }
        String sign_input = this.SUBSCRIBE_KEY + "\n" + this.PUBLISH_KEY + "\n"
                            + "audit" + "\n" + "auth=" + PubnubUtil.urlEncode(auth_key) + "&" + "channel="
                            + PubnubUtil.urlEncode(channel) + "&" + "pnsdk=" + PubnubUtil.urlEncode(getUserAgent()) + "&" + "timestamp=" + timestamp;
        try {
            signature = pamSign(this.SECRET_KEY, sign_input);
        } catch (PubnubException e1) {
            callback.errorCallback(channel,
                                   e1.getPubnubError());
            return;
        }
        parameters.put("timestamp", String.valueOf(timestamp));
        parameters.put("signature", signature);
        parameters.put("channel", channel);
        parameters.put("auth", auth_key);
        String[] urlComponents = { getPubnubUrl(), "v1", "auth", "audit", "sub-key",
                                   this.SUBSCRIBE_KEY
                                 };
        HttpRequest hreq = new HttpRequest(urlComponents, parameters,
        new ResponseHandler() {
            public void handleResponse(HttpRequest hreq, String response) {
                invokeCallback(channel, response, "payload", cb, 2);
            }
            public void handleError(HttpRequest hreq, PubnubError error) {
                cb.errorCallback(channel, error);
                return;
            }
        });
        _request(hreq, nonSubscribeManager);
    }
public void pamAudit ( final String channel , String auth_key , Callback callback ) { final Callback cb = getWrappedCallback ( callback ) ; Hashtable parameters = PubnubUtil . hashtableClone ( params ) ; String signature = "0" ; int timestamp = ( int ) ( ( new Date ( ) . getTime ( ) ) / 1000 ) ; if ( this . SECRET_KEY . length ( ) == 0 ) { callback . errorCallback ( channel , getErrorObject ( PNERROBJ_SECRET_KEY_MISSING , 4 ) ) ; return ; } String sign_input = this . SUBSCRIBE_KEY + "\n" + this . PUBLISH_KEY + "\n" + "audit" + "\n" + "auth=" + PubnubUtil . urlEncode ( auth_key ) + "&" + "channel=" + PubnubUtil . urlEncode ( channel ) + "&" + "pnsdk=" + PubnubUtil . urlEncode ( getUserAgent ( ) ) + "&" + "timestamp=" + timestamp ; try { signature = pamSign ( this . SECRET_KEY , sign_input ) ; } catch ( PubnubException e1 ) { callback . errorCallback ( channel , e1 . getPubnubError ( ) ) ; return ; } parameters . put ( "timestamp" , String . valueOf ( timestamp ) ) ; parameters . put ( "signature" , signature ) ; parameters . put ( "channel" , channel ) ; parameters . put ( "auth" , auth_key ) ; String [ ] urlComponents = { getPubnubUrl ( ) , "v1" , "auth" , "audit" , "sub-key" , this . SUBSCRIBE_KEY } ; HttpRequest hreq = new HttpRequest ( urlComponents , parameters , new ResponseHandler ( ) { public void handleResponse ( HttpRequest hreq , String response ) { invokeCallback ( channel , response , "payload" , cb , 2 ) ; } public void handleError ( HttpRequest hreq , PubnubError error ) { cb . errorCallback ( channel , error ) ; return ; } } ) ; _request ( hreq , nonSubscribeManager ) ; }
ULS audit by channel and auth key
 @param channel
 @param auth_key
 @param callback
ULS audit by channel and auth key @param channel @param auth_key @param callback