diff --git a/DESCRIPTION b/DESCRIPTION index cb2756e..2fa963b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: namsor Title: R Package Client for NamSor API v2 -Version: 1.0.1 +Version: 1.0.0 Authors@R: person("OpenAPI Generator community", email = "team@openapitools.org", role = c("aut", "cre")) Description: NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! Depends: R (>= 3.3.3) @@ -8,5 +8,5 @@ Encoding: UTF-8 License: Unlicense LazyData: true Suggests: testthat -Imports: jsonlite, httr, R6, caTools +Imports: jsonlite, httr, R6 RoxygenNote: 6.0.1.9000 diff --git a/NAMESPACE b/NAMESPACE index aa9cb28..d378255 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,12 +1,10 @@ # Generated by openapi-generator: https://openapi-generator.tech # Do not edit by hand -# Core -export(ApiClient) -export(ApiResponse) - -# Models export(APIBillingPeriodUsageOut) +export(APIClassifierOut) +export(APIClassifierTaxonomyOut) +export(APIClassifiersStatusOut) export(APICounterV2Out) export(APIKeyOut) export(APIPeriodUsageOut) @@ -79,9 +77,3 @@ export(StripeCardOut) export(StripeCustomerOut) export(SystemMetricsOut) export(UserInfoOut) - -# APIs -export(AdminApi) -export(ChineseApi) -export(PersonalApi) -export(SocialApi) diff --git a/R/APIBillingPeriodUsageOut.r b/R/APIBillingPeriodUsageOut.r index 43e39f9..6df6cc4 100644 --- a/R/APIBillingPeriodUsageOut.r +++ b/R/APIBillingPeriodUsageOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIClassifierOut.r b/R/APIClassifierOut.r new file mode 100644 index 0000000..2aaabec --- /dev/null +++ b/R/APIClassifierOut.r @@ -0,0 +1,110 @@ +# NamSor API v2 +# +# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! +# +# OpenAPI spec version: 2.0.7 +# Contact: contact@namsor.com +# Generated by: https://openapi-generator.tech + + +#' APIClassifierOut Class +#' +#' @field classifierName +#' @field serving +#' @field learning +#' @field shuttingDown +#' @field probabilityCalibrated +#' +#' @importFrom R6 R6Class +#' @importFrom jsonlite fromJSON toJSON +#' @export +APIClassifierOut <- R6::R6Class( + 'APIClassifierOut', + public = list( + `classifierName` = NULL, + `serving` = NULL, + `learning` = NULL, + `shuttingDown` = NULL, + `probabilityCalibrated` = NULL, + initialize = function(`classifierName`, `serving`, `learning`, `shuttingDown`, `probabilityCalibrated`){ + if (!missing(`classifierName`)) { + stopifnot(is.character(`classifierName`), length(`classifierName`) == 1) + self$`classifierName` <- `classifierName` + } + if (!missing(`serving`)) { + self$`serving` <- `serving` + } + if (!missing(`learning`)) { + self$`learning` <- `learning` + } + if (!missing(`shuttingDown`)) { + self$`shuttingDown` <- `shuttingDown` + } + if (!missing(`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- `probabilityCalibrated` + } + }, + toJSON = function() { + APIClassifierOutObject <- list() + if (!is.null(self$`classifierName`)) { + APIClassifierOutObject[['classifierName']] <- self$`classifierName` + } + if (!is.null(self$`serving`)) { + APIClassifierOutObject[['serving']] <- self$`serving` + } + if (!is.null(self$`learning`)) { + APIClassifierOutObject[['learning']] <- self$`learning` + } + if (!is.null(self$`shuttingDown`)) { + APIClassifierOutObject[['shuttingDown']] <- self$`shuttingDown` + } + if (!is.null(self$`probabilityCalibrated`)) { + APIClassifierOutObject[['probabilityCalibrated']] <- self$`probabilityCalibrated` + } + + APIClassifierOutObject + }, + fromJSON = function(APIClassifierOutJson) { + APIClassifierOutObject <- jsonlite::fromJSON(APIClassifierOutJson) + if (!is.null(APIClassifierOutObject$`classifierName`)) { + self$`classifierName` <- APIClassifierOutObject$`classifierName` + } + if (!is.null(APIClassifierOutObject$`serving`)) { + self$`serving` <- APIClassifierOutObject$`serving` + } + if (!is.null(APIClassifierOutObject$`learning`)) { + self$`learning` <- APIClassifierOutObject$`learning` + } + if (!is.null(APIClassifierOutObject$`shuttingDown`)) { + self$`shuttingDown` <- APIClassifierOutObject$`shuttingDown` + } + if (!is.null(APIClassifierOutObject$`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- APIClassifierOutObject$`probabilityCalibrated` + } + }, + toJSONString = function() { + sprintf( + '{ + "classifierName": %s, + "serving": %s, + "learning": %s, + "shuttingDown": %s, + "probabilityCalibrated": %s + }', + self$`classifierName`, + self$`serving`, + self$`learning`, + self$`shuttingDown`, + self$`probabilityCalibrated` + ) + }, + fromJSONString = function(APIClassifierOutJson) { + APIClassifierOutObject <- jsonlite::fromJSON(APIClassifierOutJson) + self$`classifierName` <- APIClassifierOutObject$`classifierName` + self$`serving` <- APIClassifierOutObject$`serving` + self$`learning` <- APIClassifierOutObject$`learning` + self$`shuttingDown` <- APIClassifierOutObject$`shuttingDown` + self$`probabilityCalibrated` <- APIClassifierOutObject$`probabilityCalibrated` + } + ) +) diff --git a/R/APIClassifierTaxonomyOut.r b/R/APIClassifierTaxonomyOut.r new file mode 100644 index 0000000..76db5bc --- /dev/null +++ b/R/APIClassifierTaxonomyOut.r @@ -0,0 +1,70 @@ +# NamSor API v2 +# +# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! +# +# OpenAPI spec version: 2.0.7 +# Contact: contact@namsor.com +# Generated by: https://openapi-generator.tech + + +#' APIClassifierTaxonomyOut Class +#' +#' @field classifierName +#' @field taxonomyClasses +#' +#' @importFrom R6 R6Class +#' @importFrom jsonlite fromJSON toJSON +#' @export +APIClassifierTaxonomyOut <- R6::R6Class( + 'APIClassifierTaxonomyOut', + public = list( + `classifierName` = NULL, + `taxonomyClasses` = NULL, + initialize = function(`classifierName`, `taxonomyClasses`){ + if (!missing(`classifierName`)) { + stopifnot(is.character(`classifierName`), length(`classifierName`) == 1) + self$`classifierName` <- `classifierName` + } + if (!missing(`taxonomyClasses`)) { + stopifnot(is.list(`taxonomyClasses`), length(`taxonomyClasses`) != 0) + lapply(`taxonomyClasses`, function(x) stopifnot(is.character(x))) + self$`taxonomyClasses` <- `taxonomyClasses` + } + }, + toJSON = function() { + APIClassifierTaxonomyOutObject <- list() + if (!is.null(self$`classifierName`)) { + APIClassifierTaxonomyOutObject[['classifierName']] <- self$`classifierName` + } + if (!is.null(self$`taxonomyClasses`)) { + APIClassifierTaxonomyOutObject[['taxonomyClasses']] <- self$`taxonomyClasses` + } + + APIClassifierTaxonomyOutObject + }, + fromJSON = function(APIClassifierTaxonomyOutJson) { + APIClassifierTaxonomyOutObject <- jsonlite::fromJSON(APIClassifierTaxonomyOutJson) + if (!is.null(APIClassifierTaxonomyOutObject$`classifierName`)) { + self$`classifierName` <- APIClassifierTaxonomyOutObject$`classifierName` + } + if (!is.null(APIClassifierTaxonomyOutObject$`taxonomyClasses`)) { + self$`taxonomyClasses` <- APIClassifierTaxonomyOutObject$`taxonomyClasses` + } + }, + toJSONString = function() { + sprintf( + '{ + "classifierName": %s, + "taxonomyClasses": [%s] + }', + self$`classifierName`, + lapply(self$`taxonomyClasses`, function(x) paste(paste0('"', x, '"'), sep=",")) + ) + }, + fromJSONString = function(APIClassifierTaxonomyOutJson) { + APIClassifierTaxonomyOutObject <- jsonlite::fromJSON(APIClassifierTaxonomyOutJson) + self$`classifierName` <- APIClassifierTaxonomyOutObject$`classifierName` + self$`taxonomyClasses` <- APIClassifierTaxonomyOutObject$`taxonomyClasses` + } + ) +) diff --git a/R/APIClassifiersStatusOut.r b/R/APIClassifiersStatusOut.r new file mode 100644 index 0000000..a33f9c4 --- /dev/null +++ b/R/APIClassifiersStatusOut.r @@ -0,0 +1,77 @@ +# NamSor API v2 +# +# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! +# +# OpenAPI spec version: 2.0.7 +# Contact: contact@namsor.com +# Generated by: https://openapi-generator.tech + + +#' APIClassifiersStatusOut Class +#' +#' @field softwareVersion +#' @field classifiers +#' +#' @importFrom R6 R6Class +#' @importFrom jsonlite fromJSON toJSON +#' @export +APIClassifiersStatusOut <- R6::R6Class( + 'APIClassifiersStatusOut', + public = list( + `softwareVersion` = NULL, + `classifiers` = NULL, + initialize = function(`softwareVersion`, `classifiers`){ + if (!missing(`softwareVersion`)) { + stopifnot(R6::is.R6(`softwareVersion`)) + self$`softwareVersion` <- `softwareVersion` + } + if (!missing(`classifiers`)) { + stopifnot(is.list(`classifiers`), length(`classifiers`) != 0) + lapply(`classifiers`, function(x) stopifnot(R6::is.R6(x))) + self$`classifiers` <- `classifiers` + } + }, + toJSON = function() { + APIClassifiersStatusOutObject <- list() + if (!is.null(self$`softwareVersion`)) { + APIClassifiersStatusOutObject[['softwareVersion']] <- self$`softwareVersion`$toJSON() + } + if (!is.null(self$`classifiers`)) { + APIClassifiersStatusOutObject[['classifiers']] <- lapply(self$`classifiers`, function(x) x$toJSON()) + } + + APIClassifiersStatusOutObject + }, + fromJSON = function(APIClassifiersStatusOutJson) { + APIClassifiersStatusOutObject <- jsonlite::fromJSON(APIClassifiersStatusOutJson) + if (!is.null(APIClassifiersStatusOutObject$`softwareVersion`)) { + softwareVersionObject <- SoftwareVersionOut$new() + softwareVersionObject$fromJSON(jsonlite::toJSON(APIClassifiersStatusOutObject$softwareVersion, auto_unbox = TRUE)) + self$`softwareVersion` <- softwareVersionObject + } + if (!is.null(APIClassifiersStatusOutObject$`classifiers`)) { + self$`classifiers` <- lapply(APIClassifiersStatusOutObject$`classifiers`, function(x) { + classifiersObject <- APIClassifierOut$new() + classifiersObject$fromJSON(jsonlite::toJSON(x, auto_unbox = TRUE)) + classifiersObject + }) + } + }, + toJSONString = function() { + sprintf( + '{ + "softwareVersion": %s, + "classifiers": [%s] + }', + self$`softwareVersion`$toJSON(), + lapply(self$`classifiers`, function(x) paste(x$toJSON(), sep=",")) + ) + }, + fromJSONString = function(APIClassifiersStatusOutJson) { + APIClassifiersStatusOutObject <- jsonlite::fromJSON(APIClassifiersStatusOutJson) + SoftwareVersionOutObject <- SoftwareVersionOut$new() + self$`softwareVersion` <- SoftwareVersionOutObject$fromJSON(jsonlite::toJSON(APIClassifiersStatusOutObject$softwareVersion, auto_unbox = TRUE)) + self$`classifiers` <- lapply(APIClassifiersStatusOutObject$`classifiers`, function(x) APIClassifierOut$new()$fromJSON(jsonlite::toJSON(x, auto_unbox = TRUE))) + } + ) +) diff --git a/R/APICounterV2Out.r b/R/APICounterV2Out.r index acdedee..261eb6b 100644 --- a/R/APICounterV2Out.r +++ b/R/APICounterV2Out.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIKeyOut.r b/R/APIKeyOut.r index ef8238e..3fd3d02 100644 --- a/R/APIKeyOut.r +++ b/R/APIKeyOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIPeriodUsageOut.r b/R/APIPeriodUsageOut.r index d4df5f4..90a27bb 100644 --- a/R/APIPeriodUsageOut.r +++ b/R/APIPeriodUsageOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIPlanOut.r b/R/APIPlanOut.r index d7eb8f2..bfae4ea 100644 --- a/R/APIPlanOut.r +++ b/R/APIPlanOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIPlanSubscriptionOut.r b/R/APIPlanSubscriptionOut.r index 7ec52f0..49af469 100644 --- a/R/APIPlanSubscriptionOut.r +++ b/R/APIPlanSubscriptionOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIPlansOut.r b/R/APIPlansOut.r index 16a2aca..ae862e5 100644 --- a/R/APIPlansOut.r +++ b/R/APIPlansOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIServiceOut.r b/R/APIServiceOut.r index 664719f..079139b 100644 --- a/R/APIServiceOut.r +++ b/R/APIServiceOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIServicesOut.r b/R/APIServicesOut.r index 1c9a805..89ca3bd 100644 --- a/R/APIServicesOut.r +++ b/R/APIServicesOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/APIUsageAggregatedOut.r b/R/APIUsageAggregatedOut.r index fc11b64..cd30270 100644 --- a/R/APIUsageAggregatedOut.r +++ b/R/APIUsageAggregatedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/AdminApi.r b/R/AdminApi.r index e447c55..b4362aa 100644 --- a/R/AdminApi.r +++ b/R/AdminApi.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -24,6 +24,9 @@ #' anonymize Activate/deactivate anonymization for a source. #' #' +#' api_status Prints the current status of the classifiers. +#' +#' #' api_usage Print current API usage. #' #' @@ -33,10 +36,10 @@ #' api_usage_history_aggregate Print historical API usage (in an aggregated view, by service, by day/hour/min). #' #' -#' available_plans List all available plans in the default currency (usd). +#' available_plans List all available plans in the user's preferred currency. #' #' -#' available_plans1 List all available plans in the user's preferred currency. +#' available_plans1 List all available plans in the default currency (usd). #' #' #' available_services List of API services and usage cost in Units (default is 1=ONE Unit). @@ -111,6 +114,9 @@ #' subscribe_plan_on_behalf Subscribe to a give API plan, using the user's preferred or default currency (admin only). #' #' +#' taxonomy_classes Print the taxonomy classes valid for the given classifier. +#' +#' #' update_billing_info Sets or update the billing information (company name, address, phone, vat ID) #' #' @@ -212,6 +218,30 @@ AdminApi <- R6::R6Class( Response$new("API server error", resp) } + }, + api_status = function(...){ + args <- list(...) + queryParams <- list() + headerParams <- character() + + urlPath <- "/api2/json/apiStatus" + resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + returnObject <- APIPlansOut$new() + result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) + Response$new(returnObject, resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + Response$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + Response$new("API server error", resp) + } + }, api_usage = function(...){ args <- list(...) @@ -285,12 +315,16 @@ AdminApi <- R6::R6Class( } }, - available_plans = function(...){ + available_plans = function(token, ...){ args <- list(...) queryParams <- list() headerParams <- character() - urlPath <- "/api2/json/availablePlans" + urlPath <- "/api2/json/availablePlans/{token}" + if (!missing(`token`)) { + urlPath <- gsub(paste0("\\{", "token", "\\}"), `token`, urlPath) + } + resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", queryParams = queryParams, @@ -309,16 +343,12 @@ AdminApi <- R6::R6Class( } }, - available_plans1 = function(token, ...){ + available_plans1 = function(...){ args <- list(...) queryParams <- list() headerParams <- character() - urlPath <- "/api2/json/availablePlans/{token}" - if (!missing(`token`)) { - urlPath <- gsub(paste0("\\{", "token", "\\}"), `token`, urlPath) - } - + urlPath <- "/api2/json/availablePlans" resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", queryParams = queryParams, @@ -988,6 +1018,34 @@ AdminApi <- R6::R6Class( Response$new("API server error", resp) } + }, + taxonomy_classes = function(classifier_name, ...){ + args <- list(...) + queryParams <- list() + headerParams <- character() + + urlPath <- "/api2/json/taxonomyClasses/{classifierName}" + if (!missing(`classifier_name`)) { + urlPath <- gsub(paste0("\\{", "classifierName", "\\}"), `classifier_name`, urlPath) + } + + resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), + method = "GET", + queryParams = queryParams, + headerParams = headerParams, + body = body, + ...) + + if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { + returnObject <- APIPlansOut$new() + result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) + Response$new(returnObject, resp) + } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { + Response$new("API client error", resp) + } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { + Response$new("API server error", resp) + } + }, update_billing_info = function(token, billing_info_in_out, ...){ args <- list(...) diff --git a/R/ApiClient.r b/R/ApiClient.r index e0c531e..d981d34 100644 --- a/R/ApiClient.r +++ b/R/ApiClient.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameDiasporaedOut.r b/R/BatchFirstLastNameDiasporaedOut.r index aa932ce..d194f9e 100644 --- a/R/BatchFirstLastNameDiasporaedOut.r +++ b/R/BatchFirstLastNameDiasporaedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameGenderIn.r b/R/BatchFirstLastNameGenderIn.r index 958ab02..d360f84 100644 --- a/R/BatchFirstLastNameGenderIn.r +++ b/R/BatchFirstLastNameGenderIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameGenderedOut.r b/R/BatchFirstLastNameGenderedOut.r index 5f831e8..d8684eb 100644 --- a/R/BatchFirstLastNameGenderedOut.r +++ b/R/BatchFirstLastNameGenderedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameGeoIn.r b/R/BatchFirstLastNameGeoIn.r index c27da7e..742da11 100644 --- a/R/BatchFirstLastNameGeoIn.r +++ b/R/BatchFirstLastNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameGeoZippedIn.r b/R/BatchFirstLastNameGeoZippedIn.r index 781c875..57d8cee 100644 --- a/R/BatchFirstLastNameGeoZippedIn.r +++ b/R/BatchFirstLastNameGeoZippedIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameIn.r b/R/BatchFirstLastNameIn.r index 05f66aa..eace8a5 100644 --- a/R/BatchFirstLastNameIn.r +++ b/R/BatchFirstLastNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameOriginedOut.r b/R/BatchFirstLastNameOriginedOut.r index 68bae0c..ff39206 100644 --- a/R/BatchFirstLastNameOriginedOut.r +++ b/R/BatchFirstLastNameOriginedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNamePhoneCodedOut.r b/R/BatchFirstLastNamePhoneCodedOut.r index c6fbda1..9d3824f 100644 --- a/R/BatchFirstLastNamePhoneCodedOut.r +++ b/R/BatchFirstLastNamePhoneCodedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNamePhoneNumberGeoIn.r b/R/BatchFirstLastNamePhoneNumberGeoIn.r index 61582f7..cb535eb 100644 --- a/R/BatchFirstLastNamePhoneNumberGeoIn.r +++ b/R/BatchFirstLastNamePhoneNumberGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNamePhoneNumberIn.r b/R/BatchFirstLastNamePhoneNumberIn.r index 86c4a43..e032d5c 100644 --- a/R/BatchFirstLastNamePhoneNumberIn.r +++ b/R/BatchFirstLastNamePhoneNumberIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchFirstLastNameUSRaceEthnicityOut.r b/R/BatchFirstLastNameUSRaceEthnicityOut.r index b016f43..925861f 100644 --- a/R/BatchFirstLastNameUSRaceEthnicityOut.r +++ b/R/BatchFirstLastNameUSRaceEthnicityOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchMatchPersonalFirstLastNameIn.r b/R/BatchMatchPersonalFirstLastNameIn.r index eb3830c..02b1dc1 100644 --- a/R/BatchMatchPersonalFirstLastNameIn.r +++ b/R/BatchMatchPersonalFirstLastNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchNameMatchCandidatesOut.r b/R/BatchNameMatchCandidatesOut.r index 64979ce..153e29d 100644 --- a/R/BatchNameMatchCandidatesOut.r +++ b/R/BatchNameMatchCandidatesOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchNameMatchedOut.r b/R/BatchNameMatchedOut.r index 5fe189f..e3ee5ed 100644 --- a/R/BatchNameMatchedOut.r +++ b/R/BatchNameMatchedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchParsedFullNameGeoIn.r b/R/BatchParsedFullNameGeoIn.r index b59ea11..11eec3a 100644 --- a/R/BatchParsedFullNameGeoIn.r +++ b/R/BatchParsedFullNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchParsedFullNameIn.r b/R/BatchParsedFullNameIn.r index 2a9fc57..a932419 100644 --- a/R/BatchParsedFullNameIn.r +++ b/R/BatchParsedFullNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchPersonalNameGenderedOut.r b/R/BatchPersonalNameGenderedOut.r index 152baeb..4cad745 100644 --- a/R/BatchPersonalNameGenderedOut.r +++ b/R/BatchPersonalNameGenderedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchPersonalNameGeoIn.r b/R/BatchPersonalNameGeoIn.r index f3c7937..ab41eef 100644 --- a/R/BatchPersonalNameGeoIn.r +++ b/R/BatchPersonalNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchPersonalNameGeoOut.r b/R/BatchPersonalNameGeoOut.r index dc22d64..3a945f8 100644 --- a/R/BatchPersonalNameGeoOut.r +++ b/R/BatchPersonalNameGeoOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchPersonalNameIn.r b/R/BatchPersonalNameIn.r index 697c512..232b249 100644 --- a/R/BatchPersonalNameIn.r +++ b/R/BatchPersonalNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BatchPersonalNameParsedOut.r b/R/BatchPersonalNameParsedOut.r index 2817b2e..d76d315 100644 --- a/R/BatchPersonalNameParsedOut.r +++ b/R/BatchPersonalNameParsedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BillingHistoryOut.r b/R/BillingHistoryOut.r index 33e5c1d..40f0fef 100644 --- a/R/BillingHistoryOut.r +++ b/R/BillingHistoryOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/BillingInfoInOut.r b/R/BillingInfoInOut.r index d3c4560..325a927 100644 --- a/R/BillingInfoInOut.r +++ b/R/BillingInfoInOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/ChineseApi.r b/R/ChineseApi.r index 07b1050..da350d7 100644 --- a/R/ChineseApi.r +++ b/R/ChineseApi.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/ClassifierMetricsOut.r b/R/ClassifierMetricsOut.r index 313e0ad..a44353d 100644 --- a/R/ClassifierMetricsOut.r +++ b/R/ClassifierMetricsOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/CurrenciesOut.r b/R/CurrenciesOut.r index 09f51a6..14e6294 100644 --- a/R/CurrenciesOut.r +++ b/R/CurrenciesOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/DeployUIOut.r b/R/DeployUIOut.r index c33059e..7686683 100644 --- a/R/DeployUIOut.r +++ b/R/DeployUIOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/ExpectedClassMetricsOut.r b/R/ExpectedClassMetricsOut.r index 847cb2e..af5620d 100644 --- a/R/ExpectedClassMetricsOut.r +++ b/R/ExpectedClassMetricsOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FeedbackLoopOut.r b/R/FeedbackLoopOut.r index 56b43cb..3d01a2e 100644 --- a/R/FeedbackLoopOut.r +++ b/R/FeedbackLoopOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameDiasporaedOut.r b/R/FirstLastNameDiasporaedOut.r index caf0dc6..3069a5d 100644 --- a/R/FirstLastNameDiasporaedOut.r +++ b/R/FirstLastNameDiasporaedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameGenderIn.r b/R/FirstLastNameGenderIn.r index 84e318d..abc434c 100644 --- a/R/FirstLastNameGenderIn.r +++ b/R/FirstLastNameGenderIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameGenderedOut.r b/R/FirstLastNameGenderedOut.r index 0e992ae..46e5675 100644 --- a/R/FirstLastNameGenderedOut.r +++ b/R/FirstLastNameGenderedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameGeoIn.r b/R/FirstLastNameGeoIn.r index d00b24e..d45b53a 100644 --- a/R/FirstLastNameGeoIn.r +++ b/R/FirstLastNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameGeoZippedIn.r b/R/FirstLastNameGeoZippedIn.r index ffa8c1b..a085cab 100644 --- a/R/FirstLastNameGeoZippedIn.r +++ b/R/FirstLastNameGeoZippedIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameIn.r b/R/FirstLastNameIn.r index 4d148c0..209f596 100644 --- a/R/FirstLastNameIn.r +++ b/R/FirstLastNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameOriginedOut.r b/R/FirstLastNameOriginedOut.r index 3be8835..6521de7 100644 --- a/R/FirstLastNameOriginedOut.r +++ b/R/FirstLastNameOriginedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -19,6 +19,8 @@ #' @field regionOrigin #' @field topRegionOrigin #' @field subRegionOrigin +#' @field probabilityCalibrated +#' @field probabilityAltCalibrated #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -36,7 +38,9 @@ FirstLastNameOriginedOut <- R6::R6Class( `regionOrigin` = NULL, `topRegionOrigin` = NULL, `subRegionOrigin` = NULL, - initialize = function(`id`, `firstName`, `lastName`, `countryOrigin`, `countryOriginAlt`, `countriesOriginTop`, `score`, `regionOrigin`, `topRegionOrigin`, `subRegionOrigin`){ + `probabilityCalibrated` = NULL, + `probabilityAltCalibrated` = NULL, + initialize = function(`id`, `firstName`, `lastName`, `countryOrigin`, `countryOriginAlt`, `countriesOriginTop`, `score`, `regionOrigin`, `topRegionOrigin`, `subRegionOrigin`, `probabilityCalibrated`, `probabilityAltCalibrated`){ if (!missing(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) self$`id` <- `id` @@ -78,6 +82,14 @@ FirstLastNameOriginedOut <- R6::R6Class( stopifnot(is.character(`subRegionOrigin`), length(`subRegionOrigin`) == 1) self$`subRegionOrigin` <- `subRegionOrigin` } + if (!missing(`probabilityCalibrated`)) { + stopifnot(is.numeric(`probabilityCalibrated`), length(`probabilityCalibrated`) == 1) + self$`probabilityCalibrated` <- `probabilityCalibrated` + } + if (!missing(`probabilityAltCalibrated`)) { + stopifnot(is.numeric(`probabilityAltCalibrated`), length(`probabilityAltCalibrated`) == 1) + self$`probabilityAltCalibrated` <- `probabilityAltCalibrated` + } }, toJSON = function() { FirstLastNameOriginedOutObject <- list() @@ -111,6 +123,12 @@ FirstLastNameOriginedOut <- R6::R6Class( if (!is.null(self$`subRegionOrigin`)) { FirstLastNameOriginedOutObject[['subRegionOrigin']] <- self$`subRegionOrigin` } + if (!is.null(self$`probabilityCalibrated`)) { + FirstLastNameOriginedOutObject[['probabilityCalibrated']] <- self$`probabilityCalibrated` + } + if (!is.null(self$`probabilityAltCalibrated`)) { + FirstLastNameOriginedOutObject[['probabilityAltCalibrated']] <- self$`probabilityAltCalibrated` + } FirstLastNameOriginedOutObject }, @@ -146,6 +164,12 @@ FirstLastNameOriginedOut <- R6::R6Class( if (!is.null(FirstLastNameOriginedOutObject$`subRegionOrigin`)) { self$`subRegionOrigin` <- FirstLastNameOriginedOutObject$`subRegionOrigin` } + if (!is.null(FirstLastNameOriginedOutObject$`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- FirstLastNameOriginedOutObject$`probabilityCalibrated` + } + if (!is.null(FirstLastNameOriginedOutObject$`probabilityAltCalibrated`)) { + self$`probabilityAltCalibrated` <- FirstLastNameOriginedOutObject$`probabilityAltCalibrated` + } }, toJSONString = function() { sprintf( @@ -159,7 +183,9 @@ FirstLastNameOriginedOut <- R6::R6Class( "score": %d, "regionOrigin": %s, "topRegionOrigin": %s, - "subRegionOrigin": %s + "subRegionOrigin": %s, + "probabilityCalibrated": %d, + "probabilityAltCalibrated": %d }', self$`id`, self$`firstName`, @@ -170,7 +196,9 @@ FirstLastNameOriginedOut <- R6::R6Class( self$`score`, self$`regionOrigin`, self$`topRegionOrigin`, - self$`subRegionOrigin` + self$`subRegionOrigin`, + self$`probabilityCalibrated`, + self$`probabilityAltCalibrated` ) }, fromJSONString = function(FirstLastNameOriginedOutJson) { @@ -185,6 +213,8 @@ FirstLastNameOriginedOut <- R6::R6Class( self$`regionOrigin` <- FirstLastNameOriginedOutObject$`regionOrigin` self$`topRegionOrigin` <- FirstLastNameOriginedOutObject$`topRegionOrigin` self$`subRegionOrigin` <- FirstLastNameOriginedOutObject$`subRegionOrigin` + self$`probabilityCalibrated` <- FirstLastNameOriginedOutObject$`probabilityCalibrated` + self$`probabilityAltCalibrated` <- FirstLastNameOriginedOutObject$`probabilityAltCalibrated` } ) ) diff --git a/R/FirstLastNameOut.r b/R/FirstLastNameOut.r index 0175f7a..5c779a2 100644 --- a/R/FirstLastNameOut.r +++ b/R/FirstLastNameOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNamePhoneCodedOut.r b/R/FirstLastNamePhoneCodedOut.r index 9c3ddfb..dcca57f 100644 --- a/R/FirstLastNamePhoneCodedOut.r +++ b/R/FirstLastNamePhoneCodedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNamePhoneNumberGeoIn.r b/R/FirstLastNamePhoneNumberGeoIn.r index 0c304e2..d2f17a2 100644 --- a/R/FirstLastNamePhoneNumberGeoIn.r +++ b/R/FirstLastNamePhoneNumberGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNamePhoneNumberIn.r b/R/FirstLastNamePhoneNumberIn.r index 7f06755..614e9ac 100644 --- a/R/FirstLastNamePhoneNumberIn.r +++ b/R/FirstLastNamePhoneNumberIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/FirstLastNameUSRaceEthnicityOut.r b/R/FirstLastNameUSRaceEthnicityOut.r index d46072b..0e7cf0b 100644 --- a/R/FirstLastNameUSRaceEthnicityOut.r +++ b/R/FirstLastNameUSRaceEthnicityOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -16,6 +16,8 @@ #' @field raceEthnicity #' @field score #' @field raceEthnicitiesTop +#' @field probabilityCalibrated +#' @field probabilityAltCalibrated #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -30,7 +32,9 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( `raceEthnicity` = NULL, `score` = NULL, `raceEthnicitiesTop` = NULL, - initialize = function(`id`, `firstName`, `lastName`, `raceEthnicityAlt`, `raceEthnicity`, `score`, `raceEthnicitiesTop`){ + `probabilityCalibrated` = NULL, + `probabilityAltCalibrated` = NULL, + initialize = function(`id`, `firstName`, `lastName`, `raceEthnicityAlt`, `raceEthnicity`, `score`, `raceEthnicitiesTop`, `probabilityCalibrated`, `probabilityAltCalibrated`){ if (!missing(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) self$`id` <- `id` @@ -60,6 +64,14 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( lapply(`raceEthnicitiesTop`, function(x) stopifnot(is.character(x))) self$`raceEthnicitiesTop` <- `raceEthnicitiesTop` } + if (!missing(`probabilityCalibrated`)) { + stopifnot(is.numeric(`probabilityCalibrated`), length(`probabilityCalibrated`) == 1) + self$`probabilityCalibrated` <- `probabilityCalibrated` + } + if (!missing(`probabilityAltCalibrated`)) { + stopifnot(is.numeric(`probabilityAltCalibrated`), length(`probabilityAltCalibrated`) == 1) + self$`probabilityAltCalibrated` <- `probabilityAltCalibrated` + } }, toJSON = function() { FirstLastNameUSRaceEthnicityOutObject <- list() @@ -84,6 +96,12 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( if (!is.null(self$`raceEthnicitiesTop`)) { FirstLastNameUSRaceEthnicityOutObject[['raceEthnicitiesTop']] <- self$`raceEthnicitiesTop` } + if (!is.null(self$`probabilityCalibrated`)) { + FirstLastNameUSRaceEthnicityOutObject[['probabilityCalibrated']] <- self$`probabilityCalibrated` + } + if (!is.null(self$`probabilityAltCalibrated`)) { + FirstLastNameUSRaceEthnicityOutObject[['probabilityAltCalibrated']] <- self$`probabilityAltCalibrated` + } FirstLastNameUSRaceEthnicityOutObject }, @@ -110,6 +128,12 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( if (!is.null(FirstLastNameUSRaceEthnicityOutObject$`raceEthnicitiesTop`)) { self$`raceEthnicitiesTop` <- FirstLastNameUSRaceEthnicityOutObject$`raceEthnicitiesTop` } + if (!is.null(FirstLastNameUSRaceEthnicityOutObject$`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- FirstLastNameUSRaceEthnicityOutObject$`probabilityCalibrated` + } + if (!is.null(FirstLastNameUSRaceEthnicityOutObject$`probabilityAltCalibrated`)) { + self$`probabilityAltCalibrated` <- FirstLastNameUSRaceEthnicityOutObject$`probabilityAltCalibrated` + } }, toJSONString = function() { sprintf( @@ -120,7 +144,9 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( "raceEthnicityAlt": %s, "raceEthnicity": %s, "score": %d, - "raceEthnicitiesTop": [%s] + "raceEthnicitiesTop": [%s], + "probabilityCalibrated": %d, + "probabilityAltCalibrated": %d }', self$`id`, self$`firstName`, @@ -128,7 +154,9 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( self$`raceEthnicityAlt`, self$`raceEthnicity`, self$`score`, - lapply(self$`raceEthnicitiesTop`, function(x) paste(paste0('"', x, '"'), sep=",")) + lapply(self$`raceEthnicitiesTop`, function(x) paste(paste0('"', x, '"'), sep=",")), + self$`probabilityCalibrated`, + self$`probabilityAltCalibrated` ) }, fromJSONString = function(FirstLastNameUSRaceEthnicityOutJson) { @@ -140,6 +168,8 @@ FirstLastNameUSRaceEthnicityOut <- R6::R6Class( self$`raceEthnicity` <- FirstLastNameUSRaceEthnicityOutObject$`raceEthnicity` self$`score` <- FirstLastNameUSRaceEthnicityOutObject$`score` self$`raceEthnicitiesTop` <- FirstLastNameUSRaceEthnicityOutObject$`raceEthnicitiesTop` + self$`probabilityCalibrated` <- FirstLastNameUSRaceEthnicityOutObject$`probabilityCalibrated` + self$`probabilityAltCalibrated` <- FirstLastNameUSRaceEthnicityOutObject$`probabilityAltCalibrated` } ) ) diff --git a/R/InlineObject.r b/R/InlineObject.r index 2935b10..95cc1bd 100644 --- a/R/InlineObject.r +++ b/R/InlineObject.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/InvoiceItemOut.r b/R/InvoiceItemOut.r index ecbd619..68468f4 100644 --- a/R/InvoiceItemOut.r +++ b/R/InvoiceItemOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/InvoiceOut.r b/R/InvoiceOut.r index 82798b3..dc7ed72 100644 --- a/R/InvoiceOut.r +++ b/R/InvoiceOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/MatchPersonalFirstLastNameIn.r b/R/MatchPersonalFirstLastNameIn.r index cec9e08..280a453 100644 --- a/R/MatchPersonalFirstLastNameIn.r +++ b/R/MatchPersonalFirstLastNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/NamSorCounterOut.r b/R/NamSorCounterOut.r index 6db8be2..2ee3ae0 100644 --- a/R/NamSorCounterOut.r +++ b/R/NamSorCounterOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/NameMatchCandidateOut.r b/R/NameMatchCandidateOut.r index 11c9669..2f5f14e 100644 --- a/R/NameMatchCandidateOut.r +++ b/R/NameMatchCandidateOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/NameMatchCandidatesOut.r b/R/NameMatchCandidatesOut.r index 35efa2c..98e5f9c 100644 --- a/R/NameMatchCandidatesOut.r +++ b/R/NameMatchCandidatesOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/NameMatchedOut.r b/R/NameMatchedOut.r index 426ca57..c819b90 100644 --- a/R/NameMatchedOut.r +++ b/R/NameMatchedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/ParsedFullNameGeoIn.r b/R/ParsedFullNameGeoIn.r index efd145d..12e0a12 100644 --- a/R/ParsedFullNameGeoIn.r +++ b/R/ParsedFullNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/ParsedFullNameIn.r b/R/ParsedFullNameIn.r index 2ff2912..09b4cdb 100644 --- a/R/ParsedFullNameIn.r +++ b/R/ParsedFullNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/PersonalApi.r b/R/PersonalApi.r index 1ec3915..ad0e1c1 100644 --- a/R/PersonalApi.r +++ b/R/PersonalApi.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -309,7 +309,7 @@ PersonalApi <- R6::R6Class( ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - returnObject <- FirstLastNameGenderedOut$new() + returnObject <- PersonalNameGenderedOut$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { @@ -371,7 +371,7 @@ PersonalApi <- R6::R6Class( ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { - returnObject <- FirstLastNameGenderedOut$new() + returnObject <- PersonalNameGenderedOut$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { diff --git a/R/PersonalNameGenderedOut.r b/R/PersonalNameGenderedOut.r index e587bfa..a14fc91 100644 --- a/R/PersonalNameGenderedOut.r +++ b/R/PersonalNameGenderedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -14,6 +14,7 @@ #' @field likelyGender #' @field genderScale #' @field score +#' @field probabilityCalibrated #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -26,7 +27,8 @@ PersonalNameGenderedOut <- R6::R6Class( `likelyGender` = NULL, `genderScale` = NULL, `score` = NULL, - initialize = function(`id`, `name`, `likelyGender`, `genderScale`, `score`){ + `probabilityCalibrated` = NULL, + initialize = function(`id`, `name`, `likelyGender`, `genderScale`, `score`, `probabilityCalibrated`){ if (!missing(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) self$`id` <- `id` @@ -47,6 +49,10 @@ PersonalNameGenderedOut <- R6::R6Class( stopifnot(is.numeric(`score`), length(`score`) == 1) self$`score` <- `score` } + if (!missing(`probabilityCalibrated`)) { + stopifnot(is.numeric(`probabilityCalibrated`), length(`probabilityCalibrated`) == 1) + self$`probabilityCalibrated` <- `probabilityCalibrated` + } }, toJSON = function() { PersonalNameGenderedOutObject <- list() @@ -65,6 +71,9 @@ PersonalNameGenderedOut <- R6::R6Class( if (!is.null(self$`score`)) { PersonalNameGenderedOutObject[['score']] <- self$`score` } + if (!is.null(self$`probabilityCalibrated`)) { + PersonalNameGenderedOutObject[['probabilityCalibrated']] <- self$`probabilityCalibrated` + } PersonalNameGenderedOutObject }, @@ -85,6 +94,9 @@ PersonalNameGenderedOut <- R6::R6Class( if (!is.null(PersonalNameGenderedOutObject$`score`)) { self$`score` <- PersonalNameGenderedOutObject$`score` } + if (!is.null(PersonalNameGenderedOutObject$`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- PersonalNameGenderedOutObject$`probabilityCalibrated` + } }, toJSONString = function() { sprintf( @@ -93,13 +105,15 @@ PersonalNameGenderedOut <- R6::R6Class( "name": %s, "likelyGender": %s, "genderScale": %d, - "score": %d + "score": %d, + "probabilityCalibrated": %d }', self$`id`, self$`name`, self$`likelyGender`, self$`genderScale`, - self$`score` + self$`score`, + self$`probabilityCalibrated` ) }, fromJSONString = function(PersonalNameGenderedOutJson) { @@ -109,6 +123,7 @@ PersonalNameGenderedOut <- R6::R6Class( self$`likelyGender` <- PersonalNameGenderedOutObject$`likelyGender` self$`genderScale` <- PersonalNameGenderedOutObject$`genderScale` self$`score` <- PersonalNameGenderedOutObject$`score` + self$`probabilityCalibrated` <- PersonalNameGenderedOutObject$`probabilityCalibrated` } ) ) diff --git a/R/PersonalNameGeoIn.r b/R/PersonalNameGeoIn.r index 552c503..eeb8f3a 100644 --- a/R/PersonalNameGeoIn.r +++ b/R/PersonalNameGeoIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/PersonalNameGeoOut.r b/R/PersonalNameGeoOut.r index b87c56e..4e16187 100644 --- a/R/PersonalNameGeoOut.r +++ b/R/PersonalNameGeoOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech @@ -17,6 +17,9 @@ #' @field region #' @field topRegion #' @field subRegion +#' @field countriesTop +#' @field probabilityCalibrated +#' @field probabilityAltCalibrated #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON @@ -32,7 +35,10 @@ PersonalNameGeoOut <- R6::R6Class( `region` = NULL, `topRegion` = NULL, `subRegion` = NULL, - initialize = function(`id`, `name`, `score`, `country`, `countryAlt`, `region`, `topRegion`, `subRegion`){ + `countriesTop` = NULL, + `probabilityCalibrated` = NULL, + `probabilityAltCalibrated` = NULL, + initialize = function(`id`, `name`, `score`, `country`, `countryAlt`, `region`, `topRegion`, `subRegion`, `countriesTop`, `probabilityCalibrated`, `probabilityAltCalibrated`){ if (!missing(`id`)) { stopifnot(is.character(`id`), length(`id`) == 1) self$`id` <- `id` @@ -65,6 +71,19 @@ PersonalNameGeoOut <- R6::R6Class( stopifnot(is.character(`subRegion`), length(`subRegion`) == 1) self$`subRegion` <- `subRegion` } + if (!missing(`countriesTop`)) { + stopifnot(is.list(`countriesTop`), length(`countriesTop`) != 0) + lapply(`countriesTop`, function(x) stopifnot(is.character(x))) + self$`countriesTop` <- `countriesTop` + } + if (!missing(`probabilityCalibrated`)) { + stopifnot(is.numeric(`probabilityCalibrated`), length(`probabilityCalibrated`) == 1) + self$`probabilityCalibrated` <- `probabilityCalibrated` + } + if (!missing(`probabilityAltCalibrated`)) { + stopifnot(is.numeric(`probabilityAltCalibrated`), length(`probabilityAltCalibrated`) == 1) + self$`probabilityAltCalibrated` <- `probabilityAltCalibrated` + } }, toJSON = function() { PersonalNameGeoOutObject <- list() @@ -92,6 +111,15 @@ PersonalNameGeoOut <- R6::R6Class( if (!is.null(self$`subRegion`)) { PersonalNameGeoOutObject[['subRegion']] <- self$`subRegion` } + if (!is.null(self$`countriesTop`)) { + PersonalNameGeoOutObject[['countriesTop']] <- self$`countriesTop` + } + if (!is.null(self$`probabilityCalibrated`)) { + PersonalNameGeoOutObject[['probabilityCalibrated']] <- self$`probabilityCalibrated` + } + if (!is.null(self$`probabilityAltCalibrated`)) { + PersonalNameGeoOutObject[['probabilityAltCalibrated']] <- self$`probabilityAltCalibrated` + } PersonalNameGeoOutObject }, @@ -121,6 +149,15 @@ PersonalNameGeoOut <- R6::R6Class( if (!is.null(PersonalNameGeoOutObject$`subRegion`)) { self$`subRegion` <- PersonalNameGeoOutObject$`subRegion` } + if (!is.null(PersonalNameGeoOutObject$`countriesTop`)) { + self$`countriesTop` <- PersonalNameGeoOutObject$`countriesTop` + } + if (!is.null(PersonalNameGeoOutObject$`probabilityCalibrated`)) { + self$`probabilityCalibrated` <- PersonalNameGeoOutObject$`probabilityCalibrated` + } + if (!is.null(PersonalNameGeoOutObject$`probabilityAltCalibrated`)) { + self$`probabilityAltCalibrated` <- PersonalNameGeoOutObject$`probabilityAltCalibrated` + } }, toJSONString = function() { sprintf( @@ -132,7 +169,10 @@ PersonalNameGeoOut <- R6::R6Class( "countryAlt": %s, "region": %s, "topRegion": %s, - "subRegion": %s + "subRegion": %s, + "countriesTop": [%s], + "probabilityCalibrated": %d, + "probabilityAltCalibrated": %d }', self$`id`, self$`name`, @@ -141,7 +181,10 @@ PersonalNameGeoOut <- R6::R6Class( self$`countryAlt`, self$`region`, self$`topRegion`, - self$`subRegion` + self$`subRegion`, + lapply(self$`countriesTop`, function(x) paste(paste0('"', x, '"'), sep=",")), + self$`probabilityCalibrated`, + self$`probabilityAltCalibrated` ) }, fromJSONString = function(PersonalNameGeoOutJson) { @@ -154,6 +197,9 @@ PersonalNameGeoOut <- R6::R6Class( self$`region` <- PersonalNameGeoOutObject$`region` self$`topRegion` <- PersonalNameGeoOutObject$`topRegion` self$`subRegion` <- PersonalNameGeoOutObject$`subRegion` + self$`countriesTop` <- PersonalNameGeoOutObject$`countriesTop` + self$`probabilityCalibrated` <- PersonalNameGeoOutObject$`probabilityCalibrated` + self$`probabilityAltCalibrated` <- PersonalNameGeoOutObject$`probabilityAltCalibrated` } ) ) diff --git a/R/PersonalNameIn.r b/R/PersonalNameIn.r index 94fd254..f2e6d22 100644 --- a/R/PersonalNameIn.r +++ b/R/PersonalNameIn.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/PersonalNameParsedOut.r b/R/PersonalNameParsedOut.r index 4e6e7ce..8b8e83d 100644 --- a/R/PersonalNameParsedOut.r +++ b/R/PersonalNameParsedOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/RomanizedNameOut.r b/R/RomanizedNameOut.r index a4181bc..b4785fa 100644 --- a/R/RomanizedNameOut.r +++ b/R/RomanizedNameOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/SocialApi.r b/R/SocialApi.r index 112e4cc..155f792 100644 --- a/R/SocialApi.r +++ b/R/SocialApi.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/SoftwareVersionOut.r b/R/SoftwareVersionOut.r index 754f816..fa241cd 100644 --- a/R/SoftwareVersionOut.r +++ b/R/SoftwareVersionOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/SourceDetailedMetricsOut.r b/R/SourceDetailedMetricsOut.r index 8e1e6ec..61a045f 100644 --- a/R/SourceDetailedMetricsOut.r +++ b/R/SourceDetailedMetricsOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/SourceMetricsOut.r b/R/SourceMetricsOut.r index 941e4ac..7716d60 100644 --- a/R/SourceMetricsOut.r +++ b/R/SourceMetricsOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/StripeCardOut.r b/R/StripeCardOut.r index 29f44d7..37cabcc 100644 --- a/R/StripeCardOut.r +++ b/R/StripeCardOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/StripeCustomerOut.r b/R/StripeCustomerOut.r index 5d326e0..817ce27 100644 --- a/R/StripeCustomerOut.r +++ b/R/StripeCustomerOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/SystemMetricsOut.r b/R/SystemMetricsOut.r index 610dbf1..4944dee 100644 --- a/R/SystemMetricsOut.r +++ b/R/SystemMetricsOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/R/UserInfoOut.r b/R/UserInfoOut.r index 6720329..d628588 100644 --- a/R/UserInfoOut.r +++ b/R/UserInfoOut.r @@ -2,7 +2,7 @@ # # NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # -# OpenAPI spec version: 2.0.6 +# OpenAPI spec version: 2.0.7 # Contact: contact@namsor.com # Generated by: https://openapi-generator.tech diff --git a/README.md b/README.md index 1346a8e..8d80492 100644 --- a/README.md +++ b/README.md @@ -5,234 +5,29 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or e ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. -<<<<<<< HEAD -- API version: 2.0.6 +- API version: 2.0.7 - Package version: 1.0.0 -======= -- API version: 2.0.5 -- Package version: 1.0.1 ->>>>>>> faba466e82857c8d034c9140c3c77f09f6a8e238 - Build package: org.openapitools.codegen.languages.RClientCodegen For more information, please visit [http://www.namsor.com/](http://www.namsor.com/) ## Installation +You'll need the `devtools` package in order to build the API. +Make sure you have a proper CRAN repository from which you can download packages. ### Prerequisites - -Install the dependencies - +Install the `devtools` package with the following command. ```R -install.packages("jsonlite") -install.packages("httr") -install.packages("caTools") +if(!require(devtools)) { install.packages("devtools") } ``` -### Build the package - -```sh -git clone https://github.com/namsor/namsor-r-sdk2 -cd namsor-r-sdk2 -R CMD build . -R CMD check namsor_1.0.1.tar.gz -R CMD INSTALL namsor_1.0.1.tar.gz -``` - -### Install the package - +### Installation of the API package +Make sure you set the working directory to where the API code is located. +Then execute ```R -install.packages("namsor") -``` - -To install directly from Github, use `devtools`: -```R -install.packages("devtools") library(devtools) -install_github("namsor/namsor-r-sdk2") -``` - -### Usage - -```R -library(namsor) +install(".") ``` -## Documentation for API Endpoints - -All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AdminApi* | [**AddCredits**](docs/AdminApi.md#AddCredits) | **GET** /api2/json/addCredits/{apiKey}/{usageCredits}/{userMessage} | Add usage credits to an API Key. -*AdminApi* | [**Anonymize**](docs/AdminApi.md#Anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. -*AdminApi* | [**ApiUsage**](docs/AdminApi.md#ApiUsage) | **GET** /api2/json/apiUsage | Print current API usage. -*AdminApi* | [**ApiUsageHistory**](docs/AdminApi.md#ApiUsageHistory) | **GET** /api2/json/apiUsageHistory | Print historical API usage. -*AdminApi* | [**ApiUsageHistoryAggregate**](docs/AdminApi.md#ApiUsageHistoryAggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). -*AdminApi* | [**AvailablePlans**](docs/AdminApi.md#AvailablePlans) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. -*AdminApi* | [**AvailablePlans1**](docs/AdminApi.md#AvailablePlans1) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd). -*AdminApi* | [**AvailableServices**](docs/AdminApi.md#AvailableServices) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). -*AdminApi* | [**BillingCurrencies**](docs/AdminApi.md#BillingCurrencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) -*AdminApi* | [**BillingHistory**](docs/AdminApi.md#BillingHistory) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). -*AdminApi* | [**BillingInfo**](docs/AdminApi.md#BillingInfo) | **GET** /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) -*AdminApi* | [**Charge**](docs/AdminApi.md#Charge) | **POST** /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. -*AdminApi* | [**CorporateKey**](docs/AdminApi.md#CorporateKey) | **GET** /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. -*AdminApi* | [**DebugLevel**](docs/AdminApi.md#DebugLevel) | **GET** /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier -*AdminApi* | [**Flush**](docs/AdminApi.md#Flush) | **GET** /api2/json/flush | Flush counters. -*AdminApi* | [**InvalidateCache**](docs/AdminApi.md#InvalidateCache) | **GET** /api2/json/invalidateCache | Invalidate system caches. -*AdminApi* | [**Learnable**](docs/AdminApi.md#Learnable) | **GET** /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. -*AdminApi* | [**NamsorCounter**](docs/AdminApi.md#NamsorCounter) | **GET** /api2/json/namsorCounter | Get the overall API counter -*AdminApi* | [**PaymentInfo**](docs/AdminApi.md#PaymentInfo) | **GET** /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. -*AdminApi* | [**ProcureKey**](docs/AdminApi.md#ProcureKey) | **GET** /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. -*AdminApi* | [**RedeployUI**](docs/AdminApi.md#RedeployUI) | **GET** /api2/json/redeployUI/{live} | Redeploy UI from current dev branch. -*AdminApi* | [**RedeployUI1**](docs/AdminApi.md#RedeployUI1) | **GET** /api2/json/redeployUI | Redeploy UI from current dev branch. -*AdminApi* | [**RemoveUserAccount**](docs/AdminApi.md#RemoveUserAccount) | **GET** /api2/json/removeUserAccount/{token} | Remove the user account. -*AdminApi* | [**RemoveUserAccountOnBehalf**](docs/AdminApi.md#RemoveUserAccountOnBehalf) | **GET** /api2/json/removeUserAccountOnBehalf/{apiKey} | Remove (on behalf) a user account. -*AdminApi* | [**Shutdown**](docs/AdminApi.md#Shutdown) | **GET** /api2/json/shutdown | Stop learning and shutdown system. -*AdminApi* | [**SoftwareVersion**](docs/AdminApi.md#SoftwareVersion) | **GET** /api2/json/softwareVersion | Get the current software version -*AdminApi* | [**SourceStats**](docs/AdminApi.md#SourceStats) | **GET** /api2/json/sourceStats/{source} | Print basic source statistics. -*AdminApi* | [**Stats**](docs/AdminApi.md#Stats) | **GET** /api2/json/stats | Print basic system statistics. -*AdminApi* | [**StripeConnect**](docs/AdminApi.md#StripeConnect) | **GET** /api2/json/stripeConnect | Connects a Stripe Account. -*AdminApi* | [**SubscribePlan**](docs/AdminApi.md#SubscribePlan) | **GET** /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. -*AdminApi* | [**SubscribePlanOnBehalf**](docs/AdminApi.md#SubscribePlanOnBehalf) | **GET** /api2/json/subscribePlanOnBehalf/{planName}/{apiKey} | Subscribe to a give API plan, using the user's preferred or default currency (admin only). -*AdminApi* | [**UpdateBillingInfo**](docs/AdminApi.md#UpdateBillingInfo) | **POST** /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) -*AdminApi* | [**UpdateLimit**](docs/AdminApi.md#UpdateLimit) | **GET** /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). -*AdminApi* | [**UpdatePaymentDefault**](docs/AdminApi.md#UpdatePaymentDefault) | **GET** /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. -*AdminApi* | [**UserInfo**](docs/AdminApi.md#UserInfo) | **GET** /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. -*AdminApi* | [**VerifyEmail**](docs/AdminApi.md#VerifyEmail) | **GET** /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email -*AdminApi* | [**VerifyRemoveEmail**](docs/AdminApi.md#VerifyRemoveEmail) | **GET** /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email -*AdminApi* | [**Vet**](docs/AdminApi.md#Vet) | **GET** /api2/json/vetting/{source}/{vetted} | Vetting of a source. -*ChineseApi* | [**ChineseNameCandidates**](docs/ChineseApi.md#ChineseNameCandidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming -*ChineseApi* | [**ChineseNameCandidatesBatch**](docs/ChineseApi.md#ChineseNameCandidatesBatch) | **POST** /api2/json/chineseNameCandidatesBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming -*ChineseApi* | [**ChineseNameCandidatesGenderBatch**](docs/ChineseApi.md#ChineseNameCandidatesGenderBatch) | **POST** /api2/json/chineseNameCandidatesGenderBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. -*ChineseApi* | [**ChineseNameGenderCandidates**](docs/ChineseApi.md#ChineseNameGenderCandidates) | **GET** /api2/json/chineseNameGenderCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}/{knownGender} | Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming - having a known gender ('male' or 'female') -*ChineseApi* | [**ChineseNameMatch**](docs/ChineseApi.md#ChineseNameMatch) | **GET** /api2/json/chineseNameMatch/{chineseSurnameLatin}/{chineseGivenNameLatin}/{chineseName} | Return a score for matching Chinese name ex. 王晓明 with a romanized name ex. Wang Xiaoming -*ChineseApi* | [**ChineseNameMatchBatch**](docs/ChineseApi.md#ChineseNameMatchBatch) | **POST** /api2/json/chineseNameMatchBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming -*ChineseApi* | [**GenderChineseName**](docs/ChineseApi.md#GenderChineseName) | **GET** /api2/json/genderChineseName/{chineseName} | Infer the likely gender of a Chinese full name ex. 王晓明 -*ChineseApi* | [**GenderChineseNameBatch**](docs/ChineseApi.md#GenderChineseNameBatch) | **POST** /api2/json/genderChineseNameBatch | Infer the likely gender of up to 100 full names ex. 王晓明 -*ChineseApi* | [**GenderChineseNamePinyin**](docs/ChineseApi.md#GenderChineseNamePinyin) | **GET** /api2/json/genderChineseNamePinyin/{chineseSurnameLatin}/{chineseGivenNameLatin} | Infer the likely gender of a Chinese name in LATIN (Pinyin). -*ChineseApi* | [**GenderChineseNamePinyinBatch**](docs/ChineseApi.md#GenderChineseNamePinyinBatch) | **POST** /api2/json/genderChineseNamePinyinBatch | Infer the likely gender of up to 100 Chinese names in LATIN (Pinyin). -*ChineseApi* | [**ParseChineseName**](docs/ChineseApi.md#ParseChineseName) | **GET** /api2/json/parseChineseName/{chineseName} | Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name) -*ChineseApi* | [**ParseChineseNameBatch**](docs/ChineseApi.md#ParseChineseNameBatch) | **POST** /api2/json/parseChineseNameBatch | Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name). -*ChineseApi* | [**PinyinChineseName**](docs/ChineseApi.md#PinyinChineseName) | **GET** /api2/json/pinyinChineseName/{chineseName} | Romanize the Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name) -*ChineseApi* | [**PinyinChineseNameBatch**](docs/ChineseApi.md#PinyinChineseNameBatch) | **POST** /api2/json/pinyinChineseNameBatch | Romanize a list of Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name). -*PersonalApi* | [**Country**](docs/PersonalApi.md#Country) | **GET** /api2/json/country/{personalNameFull} | [USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. -*PersonalApi* | [**CountryBatch**](docs/PersonalApi.md#CountryBatch) | **POST** /api2/json/countryBatch | [USES 10 UNITS] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. -*PersonalApi* | [**Diaspora**](docs/PersonalApi.md#Diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) -*PersonalApi* | [**DiasporaBatch**](docs/PersonalApi.md#DiasporaBatch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) -*PersonalApi* | [**Gender**](docs/PersonalApi.md#Gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. -*PersonalApi* | [**GenderBatch**](docs/PersonalApi.md#GenderBatch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. -*PersonalApi* | [**GenderFull**](docs/PersonalApi.md#GenderFull) | **GET** /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith -*PersonalApi* | [**GenderFullBatch**](docs/PersonalApi.md#GenderFullBatch) | **POST** /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. -*PersonalApi* | [**GenderFullGeo**](docs/PersonalApi.md#GenderFullGeo) | **GET** /api2/json/genderFullGeo/{fullName}/{countryIso2} | Infer the likely gender of a full name, given a local context (ISO2 country code). -*PersonalApi* | [**GenderFullGeoBatch**](docs/PersonalApi.md#GenderFullGeoBatch) | **POST** /api2/json/genderFullGeoBatch | Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code). -*PersonalApi* | [**GenderGeo**](docs/PersonalApi.md#GenderGeo) | **GET** /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). -*PersonalApi* | [**GenderGeoBatch**](docs/PersonalApi.md#GenderGeoBatch) | **POST** /api2/json/genderGeoBatch | Infer the likely gender of up to 100 names, each given a local context (ISO2 country code). -*PersonalApi* | [**Origin**](docs/PersonalApi.md#Origin) | **GET** /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. -*PersonalApi* | [**OriginBatch**](docs/PersonalApi.md#OriginBatch) | **POST** /api2/json/originBatch | [USES 10 UNITS] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context. -*PersonalApi* | [**ParseName**](docs/PersonalApi.md#ParseName) | **GET** /api2/json/parseName/{nameFull} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. -*PersonalApi* | [**ParseNameBatch**](docs/PersonalApi.md#ParseNameBatch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. -*PersonalApi* | [**ParseNameGeo**](docs/PersonalApi.md#ParseNameGeo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. -*PersonalApi* | [**ParseNameGeoBatch**](docs/PersonalApi.md#ParseNameGeoBatch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. -*PersonalApi* | [**ParsedGenderBatch**](docs/PersonalApi.md#ParsedGenderBatch) | **POST** /api2/json/parsedGenderBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. -*PersonalApi* | [**ParsedGenderGeoBatch**](docs/PersonalApi.md#ParsedGenderGeoBatch) | **POST** /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. -*PersonalApi* | [**UsRaceEthnicity**](docs/PersonalApi.md#UsRaceEthnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). -*PersonalApi* | [**UsRaceEthnicityBatch**](docs/PersonalApi.md#UsRaceEthnicityBatch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. -*PersonalApi* | [**UsRaceEthnicityZIP5**](docs/PersonalApi.md#UsRaceEthnicityZIP5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). -*PersonalApi* | [**UsZipRaceEthnicityBatch**](docs/PersonalApi.md#UsZipRaceEthnicityBatch) | **POST** /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. -*SocialApi* | [**PhoneCode**](docs/SocialApi.md#PhoneCode) | **GET** /api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber} | [USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. -*SocialApi* | [**PhoneCodeBatch**](docs/SocialApi.md#PhoneCodeBatch) | **POST** /api2/json/phoneCodeBatch | [USES 11 UNITS] Infer the likely country and phone prefix, of up to 100 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. -*SocialApi* | [**PhoneCodeGeo**](docs/SocialApi.md#PhoneCodeGeo) | **GET** /api2/json/phoneCodeGeo/{firstName}/{lastName}/{phoneNumber}/{countryIso2} | [USES 11 UNITS] Infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence). -*SocialApi* | [**PhoneCodeGeoBatch**](docs/SocialApi.md#PhoneCodeGeoBatch) | **POST** /api2/json/phoneCodeGeoBatch | [USES 11 UNITS] Infer the likely country and phone prefix, of up to 100 personal names, with a local context (ISO2 country of residence). -*SocialApi* | [**PhoneCodeGeoFeedbackLoop**](docs/SocialApi.md#PhoneCodeGeoFeedbackLoop) | **GET** /api2/json/phoneCodeGeoFeedbackLoop/{firstName}/{lastName}/{phoneNumber}/{phoneNumberE164}/{countryIso2} | [CREDITS 1 UNIT] Feedback loop to better infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence). - - -## Documentation for Models - - - [APIBillingPeriodUsageOut](docs/APIBillingPeriodUsageOut.md) - - [APICounterV2Out](docs/APICounterV2Out.md) - - [APIKeyOut](docs/APIKeyOut.md) - - [APIPeriodUsageOut](docs/APIPeriodUsageOut.md) - - [APIPlanOut](docs/APIPlanOut.md) - - [APIPlanSubscriptionOut](docs/APIPlanSubscriptionOut.md) - - [APIPlansOut](docs/APIPlansOut.md) - - [APIServiceOut](docs/APIServiceOut.md) - - [APIServicesOut](docs/APIServicesOut.md) - - [APIUsageAggregatedOut](docs/APIUsageAggregatedOut.md) - - [BatchFirstLastNameDiasporaedOut](docs/BatchFirstLastNameDiasporaedOut.md) - - [BatchFirstLastNameGenderIn](docs/BatchFirstLastNameGenderIn.md) - - [BatchFirstLastNameGenderedOut](docs/BatchFirstLastNameGenderedOut.md) - - [BatchFirstLastNameGeoIn](docs/BatchFirstLastNameGeoIn.md) - - [BatchFirstLastNameGeoZippedIn](docs/BatchFirstLastNameGeoZippedIn.md) - - [BatchFirstLastNameIn](docs/BatchFirstLastNameIn.md) - - [BatchFirstLastNameOriginedOut](docs/BatchFirstLastNameOriginedOut.md) - - [BatchFirstLastNamePhoneCodedOut](docs/BatchFirstLastNamePhoneCodedOut.md) - - [BatchFirstLastNamePhoneNumberGeoIn](docs/BatchFirstLastNamePhoneNumberGeoIn.md) - - [BatchFirstLastNamePhoneNumberIn](docs/BatchFirstLastNamePhoneNumberIn.md) - - [BatchFirstLastNameUSRaceEthnicityOut](docs/BatchFirstLastNameUSRaceEthnicityOut.md) - - [BatchMatchPersonalFirstLastNameIn](docs/BatchMatchPersonalFirstLastNameIn.md) - - [BatchNameMatchCandidatesOut](docs/BatchNameMatchCandidatesOut.md) - - [BatchNameMatchedOut](docs/BatchNameMatchedOut.md) - - [BatchParsedFullNameGeoIn](docs/BatchParsedFullNameGeoIn.md) - - [BatchParsedFullNameIn](docs/BatchParsedFullNameIn.md) - - [BatchPersonalNameGenderedOut](docs/BatchPersonalNameGenderedOut.md) - - [BatchPersonalNameGeoIn](docs/BatchPersonalNameGeoIn.md) - - [BatchPersonalNameGeoOut](docs/BatchPersonalNameGeoOut.md) - - [BatchPersonalNameIn](docs/BatchPersonalNameIn.md) - - [BatchPersonalNameParsedOut](docs/BatchPersonalNameParsedOut.md) - - [BillingHistoryOut](docs/BillingHistoryOut.md) - - [BillingInfoInOut](docs/BillingInfoInOut.md) - - [ClassifierMetricsOut](docs/ClassifierMetricsOut.md) - - [CurrenciesOut](docs/CurrenciesOut.md) - - [DeployUIOut](docs/DeployUIOut.md) - - [ExpectedClassMetricsOut](docs/ExpectedClassMetricsOut.md) - - [FeedbackLoopOut](docs/FeedbackLoopOut.md) - - [FirstLastNameDiasporaedOut](docs/FirstLastNameDiasporaedOut.md) - - [FirstLastNameGenderIn](docs/FirstLastNameGenderIn.md) - - [FirstLastNameGenderedOut](docs/FirstLastNameGenderedOut.md) - - [FirstLastNameGeoIn](docs/FirstLastNameGeoIn.md) - - [FirstLastNameGeoZippedIn](docs/FirstLastNameGeoZippedIn.md) - - [FirstLastNameIn](docs/FirstLastNameIn.md) - - [FirstLastNameOriginedOut](docs/FirstLastNameOriginedOut.md) - - [FirstLastNameOut](docs/FirstLastNameOut.md) - - [FirstLastNamePhoneCodedOut](docs/FirstLastNamePhoneCodedOut.md) - - [FirstLastNamePhoneNumberGeoIn](docs/FirstLastNamePhoneNumberGeoIn.md) - - [FirstLastNamePhoneNumberIn](docs/FirstLastNamePhoneNumberIn.md) - - [FirstLastNameUSRaceEthnicityOut](docs/FirstLastNameUSRaceEthnicityOut.md) - - [InlineObject](docs/InlineObject.md) - - [InvoiceItemOut](docs/InvoiceItemOut.md) - - [InvoiceOut](docs/InvoiceOut.md) - - [MatchPersonalFirstLastNameIn](docs/MatchPersonalFirstLastNameIn.md) - - [NamSorCounterOut](docs/NamSorCounterOut.md) - - [NameMatchCandidateOut](docs/NameMatchCandidateOut.md) - - [NameMatchCandidatesOut](docs/NameMatchCandidatesOut.md) - - [NameMatchedOut](docs/NameMatchedOut.md) - - [ParsedFullNameGeoIn](docs/ParsedFullNameGeoIn.md) - - [ParsedFullNameIn](docs/ParsedFullNameIn.md) - - [PersonalNameGenderedOut](docs/PersonalNameGenderedOut.md) - - [PersonalNameGeoIn](docs/PersonalNameGeoIn.md) - - [PersonalNameGeoOut](docs/PersonalNameGeoOut.md) - - [PersonalNameIn](docs/PersonalNameIn.md) - - [PersonalNameParsedOut](docs/PersonalNameParsedOut.md) - - [RomanizedNameOut](docs/RomanizedNameOut.md) - - [SoftwareVersionOut](docs/SoftwareVersionOut.md) - - [SourceDetailedMetricsOut](docs/SourceDetailedMetricsOut.md) - - [SourceMetricsOut](docs/SourceMetricsOut.md) - - [StripeCardOut](docs/StripeCardOut.md) - - [StripeCustomerOut](docs/StripeCustomerOut.md) - - [SystemMetricsOut](docs/SystemMetricsOut.md) - - [UserInfoOut](docs/UserInfoOut.md) - - -## Documentation for Authorization - - -### api_key - -- **Type**: API key -- **API key parameter name**: X-API-KEY -- **Location**: HTTP header - - - ## Author contact@namsor.com diff --git a/git_push.sh b/git_push.sh index 39708eb..b8cc40a 100755 --- a/git_push.sh +++ b/git_push.sh @@ -13,7 +13,7 @@ if [ "$git_user_id" = "" ]; then fi if [ "$git_repo_id" = "" ]; then - git_repo_id="namsor-r-sdk2" + git_repo_id="namsor-python-sdk2" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi