lib/helpers.js
function toQueryString(params, id) {
    var paramsString = '';
    for (var key in params) {
      if (params.hasOwnProperty(key)) {
        paramsString += '&' + key + '=' + encodeURIComponent(params[key]);
      }
    }
    return 'zws-id=' + id + paramsString;
  }
function toQueryString(params, id) {
    var paramsString = '';
    for (var key in params) {
      if (params.hasOwnProperty(key)) {
        paramsString += '&' + key + '=' + encodeURIComponent(params[key]);
      }
    }
    return 'zws-id=' + id + paramsString;
  }
function toQueryString ( params , id ) { var paramsString = '' ; for ( var key in params ) { if ( params . hasOwnProperty ( key ) ) { paramsString += '&' + key + '=' + encodeURIComponent ( params [ key ] ) ; } } return 'zws-id=' + id + paramsString ; }
Helper function that takes params hash and converts it into query string

@param {object} params
@param {Number} id
Helper function that takes params hash and converts it into query string