All URIs are relative to https://v2.namsor.com/NamSorAPIv2
Method | HTTP request | Description ------------- | ------------- | ------------- 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 InvalidateCache | GET /api2/json/invalidateCache | Invalidate system caches. 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} | Subscribe to a give API plan, using the user's preferred or default currency. 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. 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.
APIPeriodUsageOut ApiUsage()
Print current API usage.
library(namsor)
#Print current API usage.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$ApiUsage()
dput(result)
This endpoint does not need any parameter.
APIPeriodUsageOut ApiUsageHistory()
Print historical API usage.
library(namsor)
#Print historical API usage.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$ApiUsageHistory()
dput(result)
This endpoint does not need any parameter.
APIPeriodUsageOut ApiUsageHistoryAggregate()
Print historical API usage (in an aggregated view, by service, by day/hour/min).
library(namsor)
#Print historical API usage (in an aggregated view, by service, by day/hour/min).
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$ApiUsageHistoryAggregate()
dput(result)
This endpoint does not need any parameter.
APIPlansOut AvailablePlans()
List all available plans in the default currency (usd).
library(namsor)
#List all available plans in the default currency (usd).
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$AvailablePlans()
dput(result)
This endpoint does not need any parameter.
APIPlansOut AvailablePlans1(token)
List all available plans in the user's preferred currency.
library(namsor)
var.token <- 'token_example' # character |
#List all available plans in the user's preferred currency.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$AvailablePlans1(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
APIPlansOut AvailableServices()
List of API services and usage cost in Units (default is 1=ONE Unit).
library(namsor)
#List of API services and usage cost in Units (default is 1=ONE Unit).
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$AvailableServices()
dput(result)
This endpoint does not need any parameter.
CurrenciesOut BillingCurrencies()
List possible currency options for billing (USD, EUR, GBP, ...)
library(namsor)
#List possible currency options for billing (USD, EUR, GBP, ...)
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$BillingCurrencies()
dput(result)
This endpoint does not need any parameter.
BillingHistoryOut BillingHistory(token)
Read the history billing information (invoices paid via Stripe or manually).
library(namsor)
var.token <- 'token_example' # character |
#Read the history billing information (invoices paid via Stripe or manually).
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$BillingHistory(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
BillingInfoInOut BillingInfo(token)
Read the billing information (company name, address, phone, vat ID)
library(namsor)
var.token <- 'token_example' # character |
#Read the billing information (company name, address, phone, vat ID)
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$BillingInfo(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
APIKeyOut Charge(inline.object=var.inline.object)
Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email.
library(namsor)
var.inline.object <- InlineObject$new() # InlineObject |
#Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$Charge(inline.object=var.inline.object)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- inline.object | InlineObject| | [optional]
CorporateKey(api.key, corporate)
Setting an API Key to a corporate status.
library(namsor)
var.api.key <- 'api.key_example' # character |
var.corporate <- 'corporate_example' # character |
#Setting an API Key to a corporate status.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$CorporateKey(var.api.key, var.corporate)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- api.key | character| | corporate | character| |
void (empty response body)
DebugLevel(logger, level)
Update debug level for a classifier
library(namsor)
var.logger <- 'logger_example' # character |
var.level <- 'level_example' # character |
#Update debug level for a classifier
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$DebugLevel(var.logger, var.level)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- logger | character| | level | character| |
void (empty response body)
InvalidateCache()
Invalidate system caches.
library(namsor)
#Invalidate system caches.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$InvalidateCache()
This endpoint does not need any parameter.
void (empty response body)
SoftwareVersionOut NamsorCounter()
Get the overall API counter
library(namsor)
#Get the overall API counter
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$NamsorCounter()
dput(result)
This endpoint does not need any parameter.
APIKeyOut PaymentInfo(token)
Get the Stripe payment information associated with the current google auth session token.
library(namsor)
var.token <- 'token_example' # character |
#Get the Stripe payment information associated with the current google auth session token.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$PaymentInfo(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
APIKeyOut ProcureKey(token)
Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret.
library(namsor)
var.token <- 'token_example' # character |
#Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$ProcureKey(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
RedeployUI()
Redeploy UI from current dev branch.
library(namsor)
#Redeploy UI from current dev branch.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$RedeployUI()
This endpoint does not need any parameter.
void (empty response body)
RedeployUI1(live)
Redeploy UI from current dev branch.
library(namsor)
var.live <- 'live_example' # character |
#Redeploy UI from current dev branch.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$RedeployUI1(var.live)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- live | character| |
void (empty response body)
APIPlanSubscriptionOut RemoveUserAccount(token)
Subscribe to a give API plan, using the user's preferred or default currency.
library(namsor)
var.token <- 'token_example' # character |
#Subscribe to a give API plan, using the user's preferred or default currency.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$RemoveUserAccount(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
Shutdown()
Stop learning and shutdown system.
library(namsor)
#Stop learning and shutdown system.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$Shutdown()
This endpoint does not need any parameter.
void (empty response body)
SoftwareVersionOut SoftwareVersion()
Get the current software version
library(namsor)
#Get the current software version
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$SoftwareVersion()
dput(result)
This endpoint does not need any parameter.
SystemMetricsOut SourceStats(source)
Print basic source statistics.
library(namsor)
var.source <- 'source_example' # character |
#Print basic source statistics.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$SourceStats(var.source)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- source | character| |
SystemMetricsOut Stats()
Print basic system statistics.
library(namsor)
#Print basic system statistics.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$Stats()
dput(result)
This endpoint does not need any parameter.
StripeConnect(scope=var.scope, code=var.code, error=var.error, error.description=var.error.description)
Connects a Stripe Account.
library(namsor)
var.scope <- 'scope_example' # character |
var.code <- 'code_example' # character |
var.error <- 'error_example' # character |
var.error.description <- 'error.description_example' # character |
#Connects a Stripe Account.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$StripeConnect(scope=var.scope, code=var.code, error=var.error, error.description=var.error.description)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- scope | character| | [optional] code | character| | [optional] error | character| | [optional] error.description | character| | [optional]
void (empty response body)
APIPlanSubscriptionOut SubscribePlan(plan.name, token)
Subscribe to a give API plan, using the user's preferred or default currency.
library(namsor)
var.plan.name <- 'plan.name_example' # character |
var.token <- 'token_example' # character |
#Subscribe to a give API plan, using the user's preferred or default currency.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$SubscribePlan(var.plan.name, var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- plan.name | character| | token | character| |
BillingInfoInOut UpdateBillingInfo(token, billing.info.in.out=var.billing.info.in.out)
Sets or update the billing information (company name, address, phone, vat ID)
library(namsor)
var.token <- 'token_example' # character |
var.billing.info.in.out <- BillingInfoInOut$new() # BillingInfoInOut |
#Sets or update the billing information (company name, address, phone, vat ID)
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$UpdateBillingInfo(var.token, billing.info.in.out=var.billing.info.in.out)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| | billing.info.in.out | BillingInfoInOut| | [optional]
APIPeriodUsageOut UpdateLimit(usage.limit, hard.or.soft, token)
Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit).
library(namsor)
var.usage.limit <- 56 # integer |
var.hard.or.soft <- 'hard.or.soft_example' # character |
var.token <- 'token_example' # character |
#Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit).
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$UpdateLimit(var.usage.limit, var.hard.or.soft, var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- usage.limit | integer| | hard.or.soft | character| | token | character| |
APIKeyOut UpdatePaymentDefault(defaut.source.id, token)
Update the default Stripe card associated with the current google auth session token.
library(namsor)
var.defaut.source.id <- 'defaut.source.id_example' # character |
var.token <- 'token_example' # character |
#Update the default Stripe card associated with the current google auth session token.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$UpdatePaymentDefault(var.defaut.source.id, var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- defaut.source.id | character| | token | character| |
APIKeyOut UserInfo(token)
Get the user profile associated with the current google auth session token.
library(namsor)
var.token <- 'token_example' # character |
#Get the user profile associated with the current google auth session token.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$UserInfo(var.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- token | character| |
APIKeyOut VerifyEmail(email.token)
Verifies an email, based on token sent to that email
library(namsor)
var.email.token <- 'email.token_example' # character |
#Verifies an email, based on token sent to that email
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$VerifyEmail(var.email.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- email.token | character| |
APIKeyOut VerifyRemoveEmail(email.token)
Verifies an email, based on token sent to that email
library(namsor)
var.email.token <- 'email.token_example' # character |
#Verifies an email, based on token sent to that email
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
result <- api.instance$VerifyRemoveEmail(var.email.token)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- email.token | character| |
Vet(source, vetted)
Vetting of a source.
library(namsor)
var.source <- 'source_example' # character |
var.vetted <- 'vetted_example' # character |
#Vetting of a source.
api.instance <- AdminApi$new()
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['X-API-KEY'] <- 'TODO_YOUR_API_KEY';
api.instance$Vet(var.source, var.vetted)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- source | character| | vetted | character| |
void (empty response body)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.