From 9ad4a7b2cfe0aa71b0cef5aa5fc57250f974ea25 Mon Sep 17 00:00:00 2001 From: ryan echternacht Date: Tue, 15 Apr 2025 17:14:15 -0400 Subject: [PATCH 1/2] Add a reference to the key management part of our public docs to the README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d46fb53..081188d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Schematic schematic = Schematic.builder() ## Usage +A number of these examples use `keys` to identify companies and users. Learn more about keys [here](https://docs.schematichq.com/developer_resources/key_management). + ### Sending identify events Create or update users and companies using identify events. From 312b3dba00965023d4dccfcd9a29ff4ae1fec9e9 Mon Sep 17 00:00:00 2001 From: ryan echternacht Date: Wed, 23 Apr 2025 13:39:20 -0400 Subject: [PATCH 2/2] small typo fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 081188d..cca1513 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ UpsertCompanyRequestBody request = UpsertCompanyRequestBody.builder() .traits(traits) .build(); -var response = schematic.companies.upsertCompany(request); +var response = schematic.companies().upsertCompany(request); System.out.println("Company upserted: " + response.getData().getName()); ``` @@ -333,7 +333,7 @@ will be thrown. import com.schematic.api.core.SchematicException; try { - schematic.companies.getCompany(...); + schematic.companies().getCompany(...); } catch (SchematicException e) { System.out.println(e.message()); } @@ -345,7 +345,7 @@ The SDK also supports error handling for first class exceptions with strongly ty import com.schematic.api.errors.InvalidRequestError; try { - schematic.companies.getCompany(...); + schematic.companies().getCompany(...); } catch (InvalidRequestError e) { System.out.println(e.message()); System.out.println(e.getBody().getMissingField());