const queryString = Object.keys(params).map(key => { encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) }).join('&');