src/index.js
function _getIdByUsername(username) {
	const url = `${API}/get-user-id`;
	const params = {
		app: 3,
		username
	};

	return http
		.GET(url, params)
		.then(data => data.user_id);
}
function _getIdByUsername(username) {
	const url = `${API}/get-user-id`;
	const params = {
		app: 3,
		username
	};

	return http
		.GET(url, params)
		.then(data => data.user_id);
}
function _getIdByUsername ( username ) { const url = ` ${ API } ` ; const params = { app : 3 , username } ; return http . GET ( url , params ) . then ( data => data . user_id ) ; }
Retrieve the user id associated with the devRant
username.

@private

@param  {String} username - the devRant username

@return {Promise} Resolves with the user id
Retrieve the user id associated with the devRant username .