code: func (events *EventsLogService) getURL(options *EventsLogOptions) (string, error) {
  	parsed, err := url.Parse("/plugins/events-log/events/")
  	if err != nil {
  		return "", err
  	}
  
  	query := parsed.Query()
  
  	if !options.From.IsZero() {
  		query.Set("t1", options.From.Format("2006-01-02 15:04:05"))
  	}
  
  	if !options.To.IsZero() {
  		query.Set("t2", options.To.Format("2006-01-02 15:04:05"))
  	}
  
  	encoded := query.Encode()
  	if len(encoded) > 0 {
  		parsed.RawQuery = encoded
  	}
  
  	return parsed.String(), nil
  }
docs: // getURL returns the url that should be used in the request.  This will vary
  // depending on the options provided to GetEvents.