All URIs are relative to https://v2.namsor.com/NamSorAPIv2
Method | HTTP request | Description |
---|---|---|
addCredits | GET /api2/json/addCredits/{apiKey}/{usageCredits}/{userMessage} | Add usage credits to an API Key. |
anonymize | GET /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. |
apiStatus | GET /api2/json/apiStatus | Prints the current status of the classifiers. |
apiUsage | GET /api2/json/apiUsage | Print current API usage. |
apiUsageHistory | GET /api2/json/apiUsageHistory | Print historical API usage. |
apiUsageHistoryAggregate | GET /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). |
availablePlans | GET /api2/json/availablePlans | List all available plans in the default currency (usd). |
availablePlans1 | GET /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. |
availableServices | GET /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). |
billingCurrencies | GET /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) |
billingHistory | GET /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). |
billingInfo | GET /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) |
charge | POST /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. |
corporateKey | GET /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. |
debugLevel | GET /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier |
flush | GET /api2/json/flush | Flush counters. |
invalidateCache | GET /api2/json/invalidateCache | Invalidate system caches. |
learnable | GET /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. |
namsorCounter | GET /api2/json/namsorCounter | Get the overall API counter |
paymentInfo | GET /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. |
procureKey | GET /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. |
redeployUI | GET /api2/json/redeployUI | Redeploy UI from current dev branch. |
redeployUI1 | GET /api2/json/redeployUI/{live} | Redeploy UI from current dev branch. |
removeUserAccount | GET /api2/json/removeUserAccount/{token} | Remove the user account. |
removeUserAccountOnBehalf | GET /api2/json/removeUserAccountOnBehalf/{apiKey} | Remove (on behalf) a user account. |
shutdown | GET /api2/json/shutdown | Stop learning and shutdown system. |
softwareVersion | GET /api2/json/softwareVersion | Get the current software version |
sourceStats | GET /api2/json/sourceStats/{source} | Print basic source statistics. |
stats | GET /api2/json/stats | Print basic system statistics. |
stripeConnect | GET /api2/json/stripeConnect | Connects a Stripe Account. |
subscribePlan | GET /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. |
subscribePlanOnBehalf | GET /api2/json/subscribePlanOnBehalf/{planName}/{apiKey} | Subscribe to a give API plan, using the user's preferred or default currency (admin only). |
taxonomyClasses | GET /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. |
updateBillingInfo | POST /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) |
updateLimit | GET /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). |
updatePaymentDefault | GET /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. |
userInfo | GET /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. |
verifyEmail | GET /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email |
verifyRemoveEmail | GET /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email |
vet | GET /api2/json/vetting/{source}/{vetted} | Vetting of a source. |
SystemMetricsOut addCredits(apiKey, usageCredits, userMessage)
Add usage credits to an API Key.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String apiKey = "apiKey_example"; // String |
Long usageCredits = 56L; // Long |
String userMessage = "userMessage_example"; // String |
try {
SystemMetricsOut result = apiInstance.addCredits(apiKey, usageCredits, userMessage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#addCredits");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiKey | String | ||
usageCredits | Long | ||
userMessage | String |
- Content-Type: Not defined
- Accept: application/json
anonymize(source, anonymized)
Activate/deactivate anonymization for a source.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String source = "source_example"; // String |
Boolean anonymized = true; // Boolean |
try {
apiInstance.anonymize(source, anonymized);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#anonymize");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
source | String | ||
anonymized | Boolean |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
APIPlansOut apiStatus()
Prints the current status of the classifiers.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPlansOut result = apiInstance.apiStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#apiStatus");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIPeriodUsageOut apiUsage()
Print current API usage.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPeriodUsageOut result = apiInstance.apiUsage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#apiUsage");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIPeriodUsageOut apiUsageHistory()
Print historical API usage.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPeriodUsageOut result = apiInstance.apiUsageHistory();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#apiUsageHistory");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIPeriodUsageOut apiUsageHistoryAggregate()
Print historical API usage (in an aggregated view, by service, by day/hour/min).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPeriodUsageOut result = apiInstance.apiUsageHistoryAggregate();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#apiUsageHistoryAggregate");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIPlansOut availablePlans()
List all available plans in the default currency (usd).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPlansOut result = apiInstance.availablePlans();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#availablePlans");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIPlansOut availablePlans1(token)
List all available plans in the user's preferred currency.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
APIPlansOut result = apiInstance.availablePlans1(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#availablePlans1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
APIPlansOut availableServices()
List of API services and usage cost in Units (default is 1=ONE Unit).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
APIPlansOut result = apiInstance.availableServices();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#availableServices");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
CurrenciesOut billingCurrencies()
List possible currency options for billing (USD, EUR, GBP, ...)
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
CurrenciesOut result = apiInstance.billingCurrencies();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#billingCurrencies");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
BillingHistoryOut billingHistory(token)
Read the history billing information (invoices paid via Stripe or manually).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
BillingHistoryOut result = apiInstance.billingHistory(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#billingHistory");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
BillingInfoInOut billingInfo(token)
Read the billing information (company name, address, phone, vat ID)
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
BillingInfoInOut result = apiInstance.billingInfo(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#billingInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut charge(inlineObject)
Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
InlineObject inlineObject = new InlineObject(); // InlineObject |
try {
APIKeyOut result = apiInstance.charge(inlineObject);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#charge");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
inlineObject | InlineObject | [optional] |
- Content-Type: Not defined
- Accept: application/json
corporateKey(apiKey, corporate)
Setting an API Key to a corporate status.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String apiKey = "apiKey_example"; // String |
Boolean corporate = true; // Boolean |
try {
apiInstance.corporateKey(apiKey, corporate);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#corporateKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiKey | String | ||
corporate | Boolean |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
debugLevel(logger, level)
Update debug level for a classifier
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String logger = "logger_example"; // String |
String level = "level_example"; // String |
try {
apiInstance.debugLevel(logger, level);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#debugLevel");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
logger | String | ||
level | String |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
flush()
Flush counters.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
apiInstance.flush();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#flush");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
invalidateCache()
Invalidate system caches.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
apiInstance.invalidateCache();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#invalidateCache");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
learnable(source, learnable)
Activate/deactivate learning from a source.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String source = "source_example"; // String |
Boolean learnable = true; // Boolean |
try {
apiInstance.learnable(source, learnable);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#learnable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
source | String | ||
learnable | Boolean |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
SoftwareVersionOut namsorCounter()
Get the overall API counter
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
SoftwareVersionOut result = apiInstance.namsorCounter();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#namsorCounter");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
APIKeyOut paymentInfo(token)
Get the Stripe payment information associated with the current google auth session token.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
APIKeyOut result = apiInstance.paymentInfo(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#paymentInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut procureKey(token)
Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
APIKeyOut result = apiInstance.procureKey(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#procureKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
redeployUI()
Redeploy UI from current dev branch.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
apiInstance.redeployUI();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#redeployUI");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
redeployUI1(live)
Redeploy UI from current dev branch.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
Boolean live = true; // Boolean |
try {
apiInstance.redeployUI1(live);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#redeployUI1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
live | Boolean |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
APIPlanSubscriptionOut removeUserAccount(token)
Remove the user account.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
APIPlanSubscriptionOut result = apiInstance.removeUserAccount(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#removeUserAccount");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
APIPlanSubscriptionOut removeUserAccountOnBehalf(apiKey)
Remove (on behalf) a user account.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String apiKey = "apiKey_example"; // String |
try {
APIPlanSubscriptionOut result = apiInstance.removeUserAccountOnBehalf(apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#removeUserAccountOnBehalf");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiKey | String |
- Content-Type: Not defined
- Accept: application/json
shutdown()
Stop learning and shutdown system.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
apiInstance.shutdown();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#shutdown");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
SoftwareVersionOut softwareVersion()
Get the current software version
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
SoftwareVersionOut result = apiInstance.softwareVersion();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#softwareVersion");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
SystemMetricsOut sourceStats(source)
Print basic source statistics.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String source = "source_example"; // String |
try {
SystemMetricsOut result = apiInstance.sourceStats(source);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#sourceStats");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
source | String |
- Content-Type: Not defined
- Accept: application/json
SystemMetricsOut stats()
Print basic system statistics.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
try {
SystemMetricsOut result = apiInstance.stats();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#stats");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
stripeConnect(scope, code, error, errorDescription)
Connects a Stripe Account.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String scope = "scope_example"; // String |
String code = "code_example"; // String |
String error = "error_example"; // String |
String errorDescription = "errorDescription_example"; // String |
try {
apiInstance.stripeConnect(scope, code, error, errorDescription);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#stripeConnect");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
scope | String | [optional] | |
code | String | [optional] | |
error | String | [optional] | |
errorDescription | String | [optional] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
APIPlanSubscriptionOut subscribePlan(planName, token)
Subscribe to a give API plan, using the user's preferred or default currency.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String planName = "planName_example"; // String |
String token = "token_example"; // String |
try {
APIPlanSubscriptionOut result = apiInstance.subscribePlan(planName, token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#subscribePlan");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
planName | String | ||
token | String |
- Content-Type: Not defined
- Accept: application/json
APIPlanSubscriptionOut subscribePlanOnBehalf(planName, apiKey)
Subscribe to a give API plan, using the user's preferred or default currency (admin only).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String planName = "planName_example"; // String |
String apiKey = "apiKey_example"; // String |
try {
APIPlanSubscriptionOut result = apiInstance.subscribePlanOnBehalf(planName, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#subscribePlanOnBehalf");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
planName | String | ||
apiKey | String |
- Content-Type: Not defined
- Accept: application/json
APIPlansOut taxonomyClasses(classifierName)
Print the taxonomy classes valid for the given classifier.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String classifierName = "classifierName_example"; // String |
try {
APIPlansOut result = apiInstance.taxonomyClasses(classifierName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#taxonomyClasses");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
classifierName | String |
- Content-Type: Not defined
- Accept: application/json
BillingInfoInOut updateBillingInfo(token, billingInfoInOut)
Sets or update the billing information (company name, address, phone, vat ID)
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
BillingInfoInOut billingInfoInOut = new BillingInfoInOut(); // BillingInfoInOut |
try {
BillingInfoInOut result = apiInstance.updateBillingInfo(token, billingInfoInOut);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#updateBillingInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String | ||
billingInfoInOut | BillingInfoInOut | [optional] |
- Content-Type: application/json;charset=UTF-8
- Accept: application/json
APIPeriodUsageOut updateLimit(usageLimit, hardOrSoft, token)
Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit).
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
Integer usageLimit = 56; // Integer |
Boolean hardOrSoft = true; // Boolean |
String token = "token_example"; // String |
try {
APIPeriodUsageOut result = apiInstance.updateLimit(usageLimit, hardOrSoft, token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#updateLimit");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
usageLimit | Integer | ||
hardOrSoft | Boolean | ||
token | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut updatePaymentDefault(defautSourceId, token)
Update the default Stripe card associated with the current google auth session token.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String defautSourceId = "defautSourceId_example"; // String |
String token = "token_example"; // String |
try {
APIKeyOut result = apiInstance.updatePaymentDefault(defautSourceId, token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#updatePaymentDefault");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
defautSourceId | String | ||
token | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut userInfo(token)
Get the user profile associated with the current google auth session token.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String token = "token_example"; // String |
try {
APIKeyOut result = apiInstance.userInfo(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#userInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
token | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut verifyEmail(emailToken)
Verifies an email, based on token sent to that email
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String emailToken = "emailToken_example"; // String |
try {
APIKeyOut result = apiInstance.verifyEmail(emailToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#verifyEmail");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
emailToken | String |
- Content-Type: Not defined
- Accept: application/json
APIKeyOut verifyRemoveEmail(emailToken)
Verifies an email, based on token sent to that email
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String emailToken = "emailToken_example"; // String |
try {
APIKeyOut result = apiInstance.verifyRemoveEmail(emailToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#verifyRemoveEmail");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
emailToken | String |
- Content-Type: Not defined
- Accept: application/json
vet(source, vetted)
Vetting of a source.
// 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.api.AdminApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// 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();
String source = "source_example"; // String |
Boolean vetted = true; // Boolean |
try {
apiInstance.vet(source, vetted);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#vet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
source | String | ||
vetted | Boolean |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined