api/maintenance.go
func (a *API) FetchMaintenanceWindows() (*[]Maintenance, error) {
	result, err := a.Get(config.MaintenancePrefix)
	if err != nil {
		return nil, err
	}

	var windows []Maintenance
	if err := json.Unmarshal(result, &windows); err != nil {
		return nil, err
	}

	return &windows, nil
}
func (a *API) FetchMaintenanceWindows() (*[]Maintenance, error) {
	result, err := a.Get(config.MaintenancePrefix)
	if err != nil {
		return nil, err
	}

	var windows []Maintenance
	if err := json.Unmarshal(result, &windows); err != nil {
		return nil, err
	}

	return &windows, nil
}
func ( a * API ) FetchMaintenanceWindows ( ) ( * [ ] Maintenance , error ) { result , err := a . Get ( config . MaintenancePrefix ) if err != nil { return nil , err } var windows [ ] Maintenance if err := json . Unmarshal ( result , & windows ) ; err != nil { return nil , err } return & windows , nil }
// FetchMaintenanceWindows retrieves all maintenance [windows] available to API Token.
FetchMaintenanceWindows retrieves all maintenance [ windows ] available to API Token .