diff --git a/.gitignore b/.gitignore index 9c01d043..e51a50d1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,6 @@ release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar \ No newline at end of file +.mvn/wrapper/maven-wrapper.jar +.gradle +build/ \ No newline at end of file diff --git a/README.md b/README.md index f29bfd90..fc800a2d 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,13 +98,14 @@ 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 | + PersonalApi apiInstance = new PersonalApi(defaultClient); + BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = new BatchFirstLastNameGeoIn(); // BatchFirstLastNameGeoIn | A list of names, with country code. + // add a name to the batch, for example John Smith or Elena Rossini etc. try { - apiInstance.anonymize(source, anonymized); + BatchFirstLastNameGenderedOut result = apiInstance.genderGeoBatch(batchFirstLastNameGeoIn); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#anonymize"); + System.err.println("Exception when calling PersonalApi#genderGeoBatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/pom_v2_0_29Sign.xml b/pom_v2_0_29Sign.xml new file mode 100644 index 00000000..8e385e1c --- /dev/null +++ b/pom_v2_0_29Sign.xml @@ -0,0 +1,400 @@ + + 4.0.0 + com.namsor + namsor-sdk2 + jar + namsor-sdk2 + 2.0.29 + + 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 + +