opentofu/vendor/github.com/Ensighten/udnssdk/common.go
2016-03-20 12:10:59 -05:00

16 lines
335 B
Go

package udnssdk
// GetResultByURI just requests a URI
func (c *Client) GetResultByURI(uri string) (*Response, error) {
req, err := c.NewRequest("GET", uri, nil)
if err != nil {
return nil, err
}
res, err := c.HTTPClient.Do(req)
if err != nil {
return &Response{Response: res}, err
}
return &Response{Response: res}, err
}