func (a *API) FetchBrokers() (*[]Broker, error) {
	result, err := a.Get(config.BrokerPrefix)
	if err != nil {
		return nil, err
	}

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

	return &response, nil
}
func (a *API) FetchBrokers() (*[]Broker, error) {
	result, err := a.Get(config.BrokerPrefix)
	if err != nil {
		return nil, err
	}

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

	return &response, nil
}
func ( a * API ) FetchBrokers ( ) ( * [ ] Broker , error ) { result , err := a . Get ( config . BrokerPrefix ) if err != nil { return nil , err } var response [ ] Broker if err := json . Unmarshal ( result , & response ) ; err != nil { return nil , err } return & response , nil }
// FetchBrokers returns all brokers available to the API Token.
FetchBrokers returns all brokers available to the API Token .