function requireForumApiKey(apiCallFn, forum, args, target) {
        // Have a forum API key already?
        if (forum.apiKey) {
            // Invoke the API call now
            apiCallFn.apply(target || forum, args);
        } else {
            // Defer until we get the API key
            forum.getForumApiKey(function (api_key) {
                forum.apiKey = api_key;
                apiCallFn.apply(target || forum, args);
            },
            function (code) {
                extractArgs(args).failureFn(code);
            });
        }
    }
/**
     * Helper for API methods that require a forum API key.
     *
     * <p>If the API key for the forum is already known, the API
     * method will directly be invoked. Otherwise, a getForumApiKey call will be
     * made to get the key before the original API method is invoked.</p>
     *
     * @param {Function} apiCallFn A function that wraps an apiGet or apiPost
     *                             call with all the necessary arguments.
     * @param {Forum} forum The Forum object.
     * @param {Array} args The arguments array from the original API function
     *                     call on the target object.
     * @param {Forum|Thread} [target] The target object. Defaults to the Forum
     *                                object.
     */
Helper for API methods that require a forum API key.

If the API key for the forum is already known, the API
method will directly be invoked. Otherwise, a getForumApiKey call will be
made to get the key before the original API method is invoked.

@param {Function} apiCallFn A function that wraps an apiGet or apiPost
call with all the necessary arguments.
@param {Forum} forum The Forum object.
@param {Array} args The arguments array from the original API function
call on the target object.
@param {Forum|Thread} [target] The target object. Defaults to the Forum
object.
Helper for API methods that require a forum API key . If the API key for the forum is already known the API method will directly be invoked . Otherwise a getForumApiKey call will be made to get the key before the original API method is invoked . @param { Function } apiCallFn A function that wraps an apiGet or apiPost call with all the necessary arguments . @param { Forum } forum The Forum object . @param { Array } args The arguments array from the original API function call on the target object . @param { Forum|Thread } [ target ] The target object . Defaults to the Forum object .
function requireForumApiKey(apiCallFn, forum, args, target) {
        if (forum.apiKey) {
            apiCallFn.apply(target || forum, args);
        } else {
            forum.getForumApiKey(function (api_key) {
                forum.apiKey = api_key;
                apiCallFn.apply(target || forum, args);
            },
            function (code) {
                extractArgs(args).failureFn(code);
            });
        }
    }
function requireForumApiKey ( apiCallFn , forum , args , target ) { if ( forum . apiKey ) { apiCallFn . apply ( target || forum , args ) ; } else { forum . getForumApiKey ( function ( api_key ) { forum . apiKey = api_key ; apiCallFn . apply ( target || forum , args ) ; } , function ( code ) { extractArgs ( args ) . failureFn ( code ) ; } ) ; } }
Helper for API methods that require a forum API key.
Helper for API methods that require a forum API key .
// Have a forum API key already?
 // Invoke the API call now
 // Defer until we get the API key
