function apiGet(args, apiMethod, params, processFn) {
        var apiCallRef = ++apiCallCnt;
        var handlerName = "_handler" + apiCallRef;
        var extracted = extractArgs(args);
        
        disqus[handlerName] = function (response) {
            delete disqus[handlerName];
            
            log(apiMethod + " (" + apiCallRef
                + ") "
                + (response.succeeded
                    ? "succeeded"
                    : "failed (" + response.code + ")"));

            if (response.succeeded) {
                extracted.successFn && extracted.successFn(
                    processFn ? processFn(response.message) : response.message);
            } else {
                extracted.failureFn && extracted.failureFn(response.code);
            }
        };

        log("Invoking " + apiMethod + " (" + apiCallRef + ")");

        $.ajax({
            url: "http://disqus.com/api/" + apiMethod + "/",
            dataType: "script",
            data: $.extend({
                api_version: "1.1",
                api_response_format: "jsonp:disqus." + handlerName
            }, params, extracted.options)
        });
    }
/**
     * Cross-domain GET through JSONP
     */
Cross-domain GET through JSONP
Cross - domain GET through JSONP
function apiGet(args, apiMethod, params, processFn) {
        var apiCallRef = ++apiCallCnt;
        var handlerName = "_handler" + apiCallRef;
        var extracted = extractArgs(args);
        disqus[handlerName] = function (response) {
            delete disqus[handlerName];
            log(apiMethod + " (" + apiCallRef
                + ") "
                + (response.succeeded
                    ? "succeeded"
                    : "failed (" + response.code + ")"));
            if (response.succeeded) {
                extracted.successFn && extracted.successFn(
                    processFn ? processFn(response.message) : response.message);
            } else {
                extracted.failureFn && extracted.failureFn(response.code);
            }
        };
        log("Invoking " + apiMethod + " (" + apiCallRef + ")");
        $.ajax({
            url: "http://disqus.com/api/" + apiMethod + "/",
            dataType: "script",
            data: $.extend({
                api_version: "1.1",
                api_response_format: "jsonp:disqus." + handlerName
            }, params, extracted.options)
        });
    }
function apiGet ( args , apiMethod , params , processFn ) { var apiCallRef = ++ apiCallCnt ; var handlerName = "_handler" + apiCallRef ; var extracted = extractArgs ( args ) ; disqus [ handlerName ] = function ( response ) { delete disqus [ handlerName ] ; log ( apiMethod + " (" + apiCallRef + ") " + ( response . succeeded ? "succeeded" : "failed (" + response . code + ")" ) ) ; if ( response . succeeded ) { extracted . successFn && extracted . successFn ( processFn ? processFn ( response . message ) : response . message ) ; } else { extracted . failureFn && extracted . failureFn ( response . code ) ; } } ; log ( "Invoking " + apiMethod + " (" + apiCallRef + ")" ) ; $ . ajax ( { url : "http://disqus.com/api/" + apiMethod + "/" , dataType : "script" , data : $ . extend ( { api_version : "1.1" , api_response_format : "jsonp:disqus." + handlerName } , params , extracted . options ) } ) ; }
Cross-domain GET through JSONP
Cross - domain GET through JSONP