diff --git a/README.md b/README.md index d11e91f..2c83ef3 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Add the Moesif dependency to your project's pom.xml file: com.moesif.servlet moesif-servlet - 1.6.0 + 1.6.2 ``` @@ -48,7 +48,7 @@ repositories { } dependencies { - compile 'com.moesif.servlet:moesif-servlet:1.6.0' + compile 'com.moesif.servlet:moesif-servlet:1.6.2' } ``` @@ -521,7 +521,8 @@ The metadata field can be any custom data you want to set on the user. The `user MoesifFilter filter = new MoesifFilter("Your Moesif Application Id", new MoesifConfiguration()); UserModel user = new UserBuilder() - .userId("javaapiuser") + .userId("12345") + .companyId("67890") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -560,7 +561,8 @@ metadata = APIHelper.deserialize("{" + "}"); UserModel userA = new UserBuilder() - .userId("javaapiuser") + .userId("12345") + .companyId("67890") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -569,7 +571,8 @@ UserModel userA = new UserBuilder() .build(); UserModel userB = new UserBuilder() - .userId("javaapiuser1") + .userId("1234") + .companyId("6789") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -592,7 +595,7 @@ The metadata field can be any custom data you want to set on the company. The `c MoesifFilter filter = new MoesifFilter("Your Moesif Application Id", new MoesifConfiguration()); CompanyModel company = new CompanyBuilder() - .companyId("javaapicompany") + .companyId("12345") .companyDomain("acmeinc.com") .metadata(APIHelper.deserialize("{" + "\"email\": \"johndoe@acmeinc.com\"," + @@ -628,13 +631,13 @@ metadata = APIHelper.deserialize("{" + "}"); CompanyModel companyA = new CompanyBuilder() - .companyId("javaapicompany") - .companyDomain("nowhere.com") + .companyId("12345") + .companyDomain("acmeinc.com") .metadata(metadata) .build(); CompanyModel companyB = new CompanyBuilder() - .companyId("javaapicompany1") + .companyId("67890") .companyDomain("nowhere.com") .metadata(metadata) .build(); @@ -655,7 +658,7 @@ metadata = APIHelper.deserialize("{" + ## Other integrations -To view more more documentation on integration options, please visit __[the Integration Options Documentation](https://www.moesif.com/docs/getting-started/integration-options/).__ +To view more documentation on integration options, please visit __[the Integration Options Documentation](https://www.moesif.com/docs/getting-started/integration-options/).__ [ico-built-for]: https://img.shields.io/badge/built%20for-servlet-blue.svg [ico-version]: https://api.bintray.com/packages/moesif/maven/moesif-servlet/images/download.svg diff --git a/moesif-servlet/pom.xml b/moesif-servlet/pom.xml index e872d82..27ed404 100644 --- a/moesif-servlet/pom.xml +++ b/moesif-servlet/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.moesif.servlet moesif-servlet - 1.6.1 + 1.6.2 jar moesif-servlet Moesif SDK for Java Servlet to log and analyze API calls @@ -61,7 +61,7 @@ com.moesif.api moesifapi - 1.6.4 + 1.6.5 com.fasterxml.jackson.core diff --git a/moesif-servlet/src/test/java/com/moesif/servlet/MoesifServletTests.java b/moesif-servlet/src/test/java/com/moesif/servlet/MoesifServletTests.java index b3c607c..5ab8134 100644 --- a/moesif-servlet/src/test/java/com/moesif/servlet/MoesifServletTests.java +++ b/moesif-servlet/src/test/java/com/moesif/servlet/MoesifServletTests.java @@ -116,7 +116,8 @@ public int read() throws IOException { public void testUpdateUser() throws Throwable { UserModel user = new UserBuilder() - .userId("javaapiuser") + .userId("12345") + .companyId("67890") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -150,7 +151,8 @@ public void testUpdateUsersBatch() throws Throwable { "}"); UserModel userA = new UserBuilder() - .userId("javaapiuser") + .userId("12345") + .companyId("67890") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -159,7 +161,8 @@ public void testUpdateUsersBatch() throws Throwable { .build(); UserModel userB = new UserBuilder() - .userId("javaapiuser1") + .userId("1234") + .companyId("6789") .modifiedTime(new Date()) .ipAddress("29.80.250.240") .sessionToken("di3hd982h3fubv3yfd94egf") @@ -175,7 +178,7 @@ public void testUpdateUsersBatch() throws Throwable { public void testUpdateCompany() throws Throwable { CompanyModel company = new CompanyBuilder() - .companyId("javaapicompany") + .companyId("12345") .companyDomain("acmeinc.com") .metadata(APIHelper.deserialize("{" + "\"email\": \"johndoe@acmeinc.com\"," + @@ -206,13 +209,13 @@ public void testUpdateCompaniesBatch() throws Throwable { "}"); CompanyModel companyA = new CompanyBuilder() - .companyId("javaapicompany") - .companyDomain("nowhere.com") + .companyId("12345") + .companyDomain("acmeinc.com") .metadata(metadata) .build(); CompanyModel companyB = new CompanyBuilder() - .companyId("javaapicompany1") + .companyId("67890") .companyDomain("nowhere.com") .metadata(metadata) .build(); diff --git a/moesif-springrequest/README.md b/moesif-springrequest/README.md index 45ba1d2..1884872 100644 --- a/moesif-springrequest/README.md +++ b/moesif-springrequest/README.md @@ -26,7 +26,7 @@ Add the Moesif dependency to your project's pom.xml file: com.moesif.springrequest moesif-springrequest - 1.0.4 + 1.0.6 ``` @@ -170,7 +170,7 @@ interceptors.add(new MoesifSpringRequestInterceptor( ## Other integrations -To view more more documentation on integration options, please visit __[the Integration Options Documentation](https://www.moesif.com/docs/getting-started/integration-options/).__ +To view more documentation on integration options, please visit __[the Integration Options Documentation](https://www.moesif.com/docs/getting-started/integration-options/).__ [ico-built-for]: https://img.shields.io/badge/built%20for-servlet-blue.svg [ico-version]: https://api.bintray.com/packages/moesif/maven/moesif-springrequest/images/download.svg diff --git a/moesif-springrequest/pom.xml b/moesif-springrequest/pom.xml index b1a213c..456bffc 100644 --- a/moesif-springrequest/pom.xml +++ b/moesif-springrequest/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.moesif.springrequest moesif-springrequest - 1.0.5 + 1.0.6 jar moesif-springrequest Moesif SDK for Java to log and analyze outgoing API calls @@ -56,7 +56,7 @@ com.moesif.api moesifapi - 1.6.4 + 1.6.5 org.springframework