(req *proxy.Request)
| 479 | } |
| 480 | |
| 481 | func (c *Client) createRequest(req *proxy.Request) (*ari.Key, error) { |
| 482 | resp, err := c.makeRequest("create", req) |
| 483 | if err != nil { |
| 484 | return nil, err |
| 485 | } |
| 486 | if resp.Err() != nil { |
| 487 | return nil, resp.Err() |
| 488 | } |
| 489 | if resp.Key == nil { |
| 490 | return nil, ErrNil |
| 491 | } |
| 492 | return resp.Key, nil |
| 493 | } |
| 494 | |
| 495 | func (c *Client) getRequest(req *proxy.Request) (*ari.Key, error) { |
| 496 | resp, err := c.makeRequest("get", req) |
no test coverage detected