From 9c6529c97683fffc057bc81a188ca6de2e0be182 Mon Sep 17 00:00:00 2001 From: Fabio Germann Date: Tue, 2 Jun 2020 13:34:08 +0200 Subject: [PATCH 1/3] Added new parameters for version --- apiclient_pkg/Client.go | 28 ++++++++++++++-------------- models_pkg/Models.go | 2 ++ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/apiclient_pkg/Client.go b/apiclient_pkg/Client.go index 3ed7534..c7ae5eb 100644 --- a/apiclient_pkg/Client.go +++ b/apiclient_pkg/Client.go @@ -43,7 +43,7 @@ func (me *APICLIENT_IMPL) IdentityCheck( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -101,7 +101,7 @@ func (me *APICLIENT_IMPL) IdentityMatch( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -159,7 +159,7 @@ func (me *APICLIENT_IMPL) IdentityLinkEmail( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -217,7 +217,7 @@ func (me *APICLIENT_IMPL) IdentityCheckRevocationKey( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -275,7 +275,7 @@ func (me *APICLIENT_IMPL) IdentityCheckRevocationKeyStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -333,7 +333,7 @@ func (me *APICLIENT_IMPL) IdentityLinkEmailStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -391,7 +391,7 @@ func (me *APICLIENT_IMPL) IdentityCreate( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -449,7 +449,7 @@ func (me *APICLIENT_IMPL) IdentityCreateStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -507,7 +507,7 @@ func (me *APICLIENT_IMPL) IdentitySetFeaturelevel( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -565,7 +565,7 @@ func (me *APICLIENT_IMPL) IdentitySetFeaturelevelStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -623,7 +623,7 @@ func (me *APICLIENT_IMPL) IdentityMatchStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -690,7 +690,7 @@ func (me *APICLIENT_IMPL) IdentityById( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", } @@ -747,7 +747,7 @@ func (me *APICLIENT_IMPL) IdentitySetRevocationKey( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } @@ -805,7 +805,7 @@ func (me *APICLIENT_IMPL) IdentitySetRevocationKeyStage2( //prepare headers for the outgoing request headers := map[string]interface{}{ - "user-agent": "Threema/2.8", + "user-agent": "Threema/4.33A", "accept": "application/json", "content-type": "application/json; charset=utf-8", } diff --git a/models_pkg/Models.go b/models_pkg/Models.go index 6dd2cb5..7f28d83 100644 --- a/models_pkg/Models.go +++ b/models_pkg/Models.go @@ -127,6 +127,8 @@ type CreateStage2Request struct { PublicKey *string `json:"publicKey,omitempty" form:"publicKey,omitempty"` //TODO: Write general description for this field Response *string `json:"response,omitempty" form:"response,omitempty"` //TODO: Write general description for this field Token *string `json:"token,omitempty" form:"token,omitempty"` //TODO: Write general description for this field + DeviceId *string `json:"deviceId,omitempty" form:"deviceId,omitempty"` + LicenseKey *string `json:"licenseKey,omitempty" form:"licenseKey,omitempty"` } /* From ef01de4d3ef6d0b7f7145850c59e54172aad7236 Mon Sep 17 00:00:00 2001 From: Fabio Germann Date: Sun, 25 Apr 2021 11:18:31 +0200 Subject: [PATCH 2/3] Added empty go.mod --- go.mod | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e69de29 From 21af95461dd6c4b5598791d9ad772abe10bd6ed1 Mon Sep 17 00:00:00 2001 From: Fabio Germann Date: Thu, 9 Dec 2021 18:22:22 -0500 Subject: [PATCH 3/3] added go.mod file - bare minimum --- go.mod | 1 + 1 file changed, 1 insertion(+) diff --git a/go.mod b/go.mod index e69de29..54574ad 100644 --- a/go.mod +++ b/go.mod @@ -0,0 +1 @@ +module github.com/o3ma/o3rest \ No newline at end of file