lib/SlackBotWorker/api.js
function postForm(url, formData, cb, multipart) {
		cb = cb || noop;

		botkit.debug('** API CALL: ' + url);

		if (Array.isArray(api.logByKey[url])) {
			api.logByKey[url].push(formData);
		} else {
			api.logByKey[url] = [formData];
		}

		storage.process(url, formData, cb);
	}
function postForm(url, formData, cb, multipart) {
		cb = cb || noop;

		botkit.debug('** API CALL: ' + url);

		if (Array.isArray(api.logByKey[url])) {
			api.logByKey[url].push(formData);
		} else {
			api.logByKey[url] = [formData];
		}

		storage.process(url, formData, cb);
	}
function postForm ( url , formData , cb , multipart ) { cb = cb || noop ; botkit . debug ( '** API CALL: ' + url ) ; if ( Array . isArray ( api . logByKey [ url ] ) ) { api . logByKey [ url ] . push ( formData ) ; } else { api . logByKey [ url ] = [ formData ] ; } storage . process ( url , formData , cb ) ; }
Makes a POST request as a form to the given url with the options as data

@param {string} url The URL to POST to
@param {Object} formData The data to POST as a form
@param {function=} cb An optional NodeJS style callback when the POST completes or errors out.
Makes a POST request as a form to the given url with the options as data