From 253e19369d24f89de2b7b344c627eab7ba4aa22a Mon Sep 17 00:00:00 2001 From: NamSor Date: Sun, 16 Jul 2023 09:15:43 +0200 Subject: [PATCH] signed ok updated readme --- README.md | 16 +- pom_v2_0_27B02Sign.xml | 400 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 407 insertions(+), 9 deletions(-) create mode 100644 pom_v2_0_27B02Sign.xml diff --git a/README.md b/README.md index 7fa1daf5..d71c50e3 100644 --- a/README.md +++ b/README.md @@ -79,14 +79,13 @@ Then manually install the following JARs: Please follow the [installation](#installation) instruction and execute the following Java code: ```java - // Import classes: import com.namsor.sdk2.invoke.ApiClient; import com.namsor.sdk2.invoke.ApiException; import com.namsor.sdk2.invoke.Configuration; import com.namsor.sdk2.invoke.auth.*; import com.namsor.sdk2.invoke.models.*; -import com.namsor.sdk2.api.AdminApi; +import com.namsor.sdk2.api.PersonalApi; public class Example { public static void main(String[] args) { @@ -99,15 +98,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //api_key.setApiKeyPrefix("Token"); - AdminApi apiInstance = new AdminApi(defaultClient); - String source = "source_example"; // String | - Boolean anonymized = true; // Boolean | - String token = "token_example"; // String | + PersonalApi apiInstance = new PersonalApi(defaultClient); + String firstName = "John"; // String | + String lastName = "Smith"; // String | + String countryIso2 = "US"; // String | try { - APIKeyOut result = apiInstance.anonymize(source, anonymized, token); + FirstLastNameGenderedOut result = apiInstance.genderGeo(firstName, lastName, countryIso2); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#anonymize"); + System.err.println("Exception when calling PersonalApi#genderGeo"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -115,7 +114,6 @@ public class Example { } } } - ``` ## Documentation for API Endpoints diff --git a/pom_v2_0_27B02Sign.xml b/pom_v2_0_27B02Sign.xml new file mode 100644 index 00000000..2ccb886c --- /dev/null +++ b/pom_v2_0_27B02Sign.xml @@ -0,0 +1,400 @@ + + 4.0.0 + com.namsor + namsor-sdk2 + jar + namsor-sdk2 + 2.0.27 + + https://github.com/namsor/namsor-java-sdk2/ + NamSor OpenAPI Java Client SDK + + scm:git:git@github.com:openapitools/openapi-generator.git + scm:git:git@github.com:openapitools/openapi-generator.git + https://github.com/openapitools/openapi-generator + + + + + Unlicense + https://v2.namsor.com/NamSorAPIv2/assets/pdf/201803_NamSor_API_Terms_v007.pdf + repo + + + + + + + NamSor + contact@namsor.com + NamSor + https://www.namsor.com/ + + + OpenAPI-Generator Contributors + team@openapitools.org + OpenAPITools.org + http://openapitools.org + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + true + 128m + 512m + + -Xlint:all + -J-Xss4m + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.1.0 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + 10 + + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + + + + + maven-dependency-plugin + 3.3.0 + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + test-jar + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add_sources + generate-sources + + add-source + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.1 + + + attach-javadocs + + jar + + + + + none + + + http.response.details + a + Http Response Details: + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + 73D9C8DC06DB97D6 + + + + sign-artifacts + verify + + sign + + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + + + .gitignore + + + + + + true + 4 + + + + + + + + + + 1.8 + + true + + + + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + + + + sign-artifacts-deploy + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + 73D9C8DC06DB97D6 + + + + sign-artifacts + verify + + sign + + + + + + + + + + + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + + jakarta.annotation + jakarta.annotation-api + ${jakarta-annotation-version} + provided + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + + + + javax.ws.rs + jsr311-api + ${jsr311-api-version} + + + javax.ws.rs + javax.ws.rs-api + ${javax.ws.rs-api-version} + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + test + + + org.junit.platform + junit-platform-runner + ${junit-platform-runner.version} + test + + + org.mockito + mockito-core + ${mockito-core-version} + test + + + + 1.8 + ${java.version} + ${java.version} + 1.8.5 + 1.6.6 + 4.10.0 + 2.9.1 + 3.12.0 + 0.2.6 + 1.3.5 + 5.9.1 + 1.9.1 + 3.12.4 + 2.1.1 + 1.1.1 + UTF-8 + 2.27.2 + +