diff --git a/README.md b/README.md index aa062a2..c39f695 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,10 @@ func DaDataExample() { } ``` -## Credentials + +## Configuration + +### Credentials `DADATA_API_KEY` and `DADATA_SECRET_KEY` environment variables are used by default to authenticate client. @@ -61,5 +64,17 @@ creds := client.Credentials{ api := NewSuggestApi(client.WithCredentialProvider(&creds)) ``` + +### HTTP client + +HTTP client may be overridden with custom one: + +```go +httpClient := &http.Client{} + +api := NewSuggestApi(WithHttpClient(httpClient)) +``` + + ## Licence MIT see [LICENSE](LICENSE) diff --git a/VERSION b/VERSION index 005119b..8e8299d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.1 +2.4.2