| 521 | } |
| 522 | |
| 523 | func (c *Client) listRequest(req *proxy.Request) ([]*ari.Key, error) { |
| 524 | var list []*ari.Key |
| 525 | |
| 526 | responses, err := c.makeRequests("get", req) |
| 527 | if err != nil { |
| 528 | return nil, err |
| 529 | } |
| 530 | |
| 531 | for _, r := range responses { |
| 532 | err = r.Err() |
| 533 | if r.Err() != nil || r.Keys == nil { |
| 534 | continue |
| 535 | } |
| 536 | list = append(list, r.Keys...) |
| 537 | } |
| 538 | return list, err |
| 539 | } |
| 540 | |
| 541 | func (c *Client) makeRequest(class string, req *proxy.Request) (*proxy.Response, error) { |
| 542 | if !c.completeCoordinates(req) { |