NewClient returns a new Crawler API client.
(userID, apiKey string)
| 24 | |
| 25 | // NewClient returns a new Crawler API client. |
| 26 | func 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. |
| 35 | func NewClientWithHTTPClient(userID, apiKey string, client *http.Client) *Client { |