(req *proxy.Request)
| 493 | } |
| 494 | |
| 495 | func (c *Client) getRequest(req *proxy.Request) (*ari.Key, error) { |
| 496 | resp, err := c.makeRequest("get", req) |
| 497 | if err != nil { |
| 498 | return nil, err |
| 499 | } |
| 500 | if resp.Err() != nil { |
| 501 | return nil, resp.Err() |
| 502 | } |
| 503 | if resp.Key == nil { |
| 504 | return nil, ErrNil |
| 505 | } |
| 506 | return resp.Key, nil |
| 507 | } |
| 508 | |
| 509 | func (c *Client) dataRequest(req *proxy.Request) (*proxy.EntityData, error) { |
| 510 | resp, err := c.makeRequest("data", req) |