// Returns a map of representatives and their voting weights.
// If count > 0, limits the number of representatives returned.
// Optionally sorts representatives in descending order.
Returns a map of representatives and their voting weights.
If count > 0, limits the number of representatives returned.
Optionally sorts representatives in descending order.
// Returns a map of representatives and their voting weights . // If count > 0 limits the number of representatives returned . // Optionally sorts representatives in descending order .
func Representatives(count int, sort bool) (map[string]string, error) {
	payload := map[string]interface{}{
		"sorting": sort,
	}
	if count > 0 {
		payload["count"] = count
	}
	return client.fetchMap("representatives", nil, "representatives")
}
func Representatives ( count int , sort bool ) ( map [ string ] string , error ) { payload := map [ string ] interface { } { " " : sort , } if count > 0 { payload [ " " ] = count } return client . fetchMap ( " " , nil , " " ) }
Returns a map of representatives and their voting weights.
Returns a map of representatives and their voting weights .