{"modulePath":"github.com/HasData/hasdata-cli","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Types\n\n```go\ntype Client struct {\n\tAPIKey   string\n\tEndpoint string\n\tHTTP     *retryablehttp.Client\n\tVerbose  bool\n\tStderr   io.Writer\n}\n```\n\n```go\nfunc New(o Options) *Client\n```\n\n```go\nfunc (c *Client) Do(ctx context.Context, method, endpoint string, params url.Values, body any) (*Response, error)\n```\nDo calls the given fully-qualified URL with the given HTTP method. For GET, query params are encoded from \\`params\\`. For POST, the body is JSON of \\`body\\`.\n\n```go\ntype Options struct {\n\tAPIKey   string\n\tEndpoint string\n\tTimeout  time.Duration\n\tRetries  int\n\tVerbose  bool\n\tStderr   io.Writer\n}\n```\n\n```go\ntype Response struct {\n\tStatus      int\n\tContentType string\n\tBody        []byte\n}\n```\n\n","path":"github.com/HasData/hasdata-cli/internal/client","name":"client","synopsis":"","isRedistributable":true}
