code: function getParams(self, steamObj, requiredParams, optionalParams) {
      // Required params will throw exception if they don't exist
      var paramObj = {};
      for (var i = 0, len = requiredParams.length; i < len; i++) {
          var paramName = requiredParams[i];
  
          // Support array arguments
          paramName = paramName.replace("[0]","");
  
          paramObj[paramName] = get(self, steamObj, paramName);
      }
  
      // Ignore the thrown exception on optionalParams if field isn't given
      for (var i = 0, len = optionalParams.length; i < len; i++) {
          var paramName = optionalParams[i];
  
          // Support array arguments
          paramName = paramName.replace("[0]","");
  
          try {
              paramObj[paramName] = get(self, steamObj, paramName);
          } catch(e) {
  
          }
  
      }
      return paramObj;
  }
docs: Get the parameters from the steamObj passed in or Steam instance