code: function buildQueryString(params) {
      var querystring = '';
      for(param in params) {
          querystring += '&' + param + '=' + params[param];
      }
      return querystring;
  }
docs: Utility function to build querystring parameters for API call.