MCPcopy Create free account
hub / github.com/algolia/cli / NewClient

Function NewClient

api/crawler/client.go:26–32  ·  view source on GitHub ↗

NewClient returns a new Crawler API client.

(userID, apiKey string)

Source from the content-addressed store, hash-verified

24
25// NewClient returns a new Crawler API client.
26func NewClient(userID, apiKey string) *Client {
27 return &Client{
28 UserID: userID,
29 APIKey: apiKey,
30 client: http.DefaultClient,
31 }
32}
33
34// NewClientWithHTTPClient returns a new Crawler API client with a custom HTTP client.
35func NewClientWithHTTPClient(userID, apiKey string, client *http.Client) *Client {

Callers 1

crawlerClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected