From e8e6cb2c5b177a4170760b8b9e2954852c6318e7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 25 Aug 2022 12:51:30 +0000 Subject: [PATCH] chore(release): 1.0.0-test.4 [skip ci] ## [1.0.0-test.4](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.3...v1.0.0-test.4) (2022-08-25) ### Documentation * **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) --- CHANGELOG.md | 7 +++++++ README.md | 10 +++++----- config.json | 2 +- sdk/api_fingerprint.go | 2 +- sdk/configuration.go | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16fd861..5654b8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.0-test.4](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.3...v1.0.0-test.4) (2022-08-25) + + +### Documentation + +* **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) + ## [1.0.0-test.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.2...v1.0.0-test.3) (2022-08-24) diff --git a/README.md b/README.md index ce40f07..7f02516 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ Fingerprint Pro Server API provides a way for validating visitors’ data issued This Go package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 -- Package version: 1.0.0-test.3 +- Package version: 1.0.0-test.4 - Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen -## Requirements +## Requirements. -Go 1.17 or higher +Go Lang 1.17 or higher ## Installation & Usage @@ -71,12 +71,12 @@ func main() { cfg := sdk.NewConfiguration() client := sdk.NewAPIClient(cfg) - // Configure authorization with secret API Key + // Configure authorization, in our case with API Key auth := context.WithValue(context.Background(), sdk.ContextAPIKey, sdk.APIKey{ Key: "SECRET_API_KEY", }) - // Usually a visitorId comes from your frontend app or webhook + // Usually this data will come from your frontend app visitorId := "VISITOR_ID" opts := sdk.FingerprintApiGetVisitsOpts{ RequestId: optional.NewString("REQUEST_ID"), diff --git a/config.json b/config.json index b710962..c666093 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,5 @@ "gitUserId": "fingerprintjs", "packageName": "sdk", "packageUrl": "https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk", - "packageVersion": "1.0.0-test.3" + "packageVersion": "1.0.0-test.4" } \ No newline at end of file diff --git a/sdk/api_fingerprint.go b/sdk/api_fingerprint.go index 428a20e..082444c 100644 --- a/sdk/api_fingerprint.go +++ b/sdk/api_fingerprint.go @@ -63,7 +63,7 @@ func (a *FingerprintApiService) GetVisits(ctx context.Context, visitorId string, localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - localVarQueryParams.Add("ii", "fingerprint-pro-server-go-sdk/1.0.0-test.3") + localVarQueryParams.Add("ii", "fingerprint-pro-server-go-sdk/1.0.0-test.4") if localVarOptionals != nil && localVarOptionals.RequestId.IsSet() { localVarQueryParams.Add("request_id", parameterToString(localVarOptionals.RequestId.Value(), "")) diff --git a/sdk/configuration.go b/sdk/configuration.go index b9752fd..ad4ddcb 100644 --- a/sdk/configuration.go +++ b/sdk/configuration.go @@ -93,7 +93,7 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/1.0.0-test.3/go", + UserAgent: "Swagger-Codegen/1.0.0-test.4/go", region: RegionUS, } cfg.basePath = resolveBasePath(cfg.region)