Skip to content

Commit

Permalink
signed ok updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
namsor committed Jul 16, 2023
1 parent f274c0d commit 253e193
Show file tree
Hide file tree
Showing 2 changed files with 407 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -99,23 +98,22 @@ 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());
e.printStackTrace();
}
}
}

```

## Documentation for API Endpoints
Expand Down
Loading

0 comments on commit 253e193

Please sign in to comment.