From dfcf52f30cdbde3a4e1400024b0c27451d179e5d Mon Sep 17 00:00:00 2001 From: s Date: Sat, 8 Nov 2025 02:44:13 -0500 Subject: feat: add unauthenticated client support and new osint/x commands --- internal/client/client.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/client/client.go') diff --git a/internal/client/client.go b/internal/client/client.go index 468fae9..eaf87cb 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -29,6 +29,15 @@ func New(cfg *config.Config) (*Client, error) { }, nil } +func NewUnauthenticated(cfg *config.Config) (*Client, error) { + return &Client{ + config: cfg, + httpClient: &http.Client{ + Timeout: cfg.Timeout, + }, + }, nil +} + func (c *Client) doRequest(method, path string, params url.Values, body interface{}) ([]byte, error) { fullURL := c.config.BaseURL + path if params != nil && len(params) > 0 { -- cgit v1.2.3