wotblitz.js
function(search, type, limit, fields) {
		if (!search) return Promise.reject(new Error('wotblitz.account.list: search is required'));

		return request({
			hostname: hosts.wotb,
			path: '/wotb/account/list/'
		}, {
			fields: fields ? fields.toString() : '',
			limit: limit,
			search: search,
			type: type
		});
	}
function(search, type, limit, fields) {
		if (!search) return Promise.reject(new Error('wotblitz.account.list: search is required'));

		return request({
			hostname: hosts.wotb,
			path: '/wotb/account/list/'
		}, {
			fields: fields ? fields.toString() : '',
			limit: limit,
			search: search,
			type: type
		});
	}
function ( search , type , limit , fields ) { if ( ! search ) return Promise . reject ( new Error ( 'wotblitz.account.list: search is required' ) ) ; return request ( { hostname : hosts . wotb , path : '/wotb/account/list/' } , { fields : fields ? fields . toString ( ) : '' , limit : limit , search : search , type : type } ) ; }
Search for a player.

@param {string} search value to match usernames
@param {string} [type] how to match, "startswith" or "exact"
@param {number} [limit] maximum number of entries to match
@param {string|string[]} [fields] response selection
@returns {Promise<Object[]> resolves to an array of matching accounts
Search for a player .