Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.9 KB

OriginListApi.md

File metadata and controls

58 lines (40 loc) · 1.9 KB

OriginListApi

All URIs are relative to https://api.namsor.com/onomastics/api/json

Method HTTP request Description
extractOriginList POST /originList To determin the origin of many names (up to 1000)

extractOriginList

ExtractOriginListOutput extractOriginList(xChannelSecret, xChannelUser, namesListInput)

To determin the origin of many names (up to 1000)

To extract the likely linguistic/cultural origins of each name in a list (up to 1000 names) at country-level.

Example

// Import classes:
//import com.namsor.ApiException;
//import com.namsor.api.OriginListApi;


OriginListApi apiInstance = new OriginListApi();
String xChannelSecret = "\"\""; // String | Your API Key (Secret)
String xChannelUser = "\"\""; // String | Your API Channel (User)
List<NamesListInput> namesListInput = Arrays.asList(new NamesListInput()); // List<NamesListInput> | A list of names to extract origin (up to 1000 at a time)
try {
    ExtractOriginListOutput result = apiInstance.extractOriginList(xChannelSecret, xChannelUser, namesListInput);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling OriginListApi#extractOriginList");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
xChannelSecret String Your API Key (Secret)
xChannelUser String Your API Channel (User)
namesListInput List<NamesListInput> A list of names to extract origin (up to 1000 at a time)

Return type

ExtractOriginListOutput

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json