# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test AdminApi")
api.instance <- AdminApi$new()
test_that("ApiUsage", {
# tests for ApiUsage
# base path: https://v2.namsor.com/NamSorAPIv2
# Print current API usage.
# @return [APIPeriodUsageOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiUsageHistory", {
# tests for ApiUsageHistory
# base path: https://v2.namsor.com/NamSorAPIv2
# Print historical API usage.
# @return [APIPeriodUsageOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiUsageHistoryAggregate", {
# tests for ApiUsageHistoryAggregate
# base path: https://v2.namsor.com/NamSorAPIv2
# Print historical API usage (in an aggregated view, by service, by day/hour/min).
# @return [APIPeriodUsageOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("AvailablePlans", {
# tests for AvailablePlans
# base path: https://v2.namsor.com/NamSorAPIv2
# List all available plans in the default currency (usd).
# @return [APIPlansOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("AvailablePlans1", {
# tests for AvailablePlans1
# base path: https://v2.namsor.com/NamSorAPIv2
# List all available plans in the user's preferred currency.
# @param character token
# @return [APIPlansOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("AvailableServices", {
# tests for AvailableServices
# base path: https://v2.namsor.com/NamSorAPIv2
# List of API services and usage cost in Units (default is 1=ONE Unit).
# @return [APIPlansOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("BillingCurrencies", {
# tests for BillingCurrencies
# base path: https://v2.namsor.com/NamSorAPIv2
# List possible currency options for billing (USD, EUR, GBP, ...)
# @return [CurrenciesOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("BillingHistory", {
# tests for BillingHistory
# base path: https://v2.namsor.com/NamSorAPIv2
# Read the history billing information (invoices paid via Stripe or manually).
# @param character token
# @return [BillingHistoryOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("BillingInfo", {
# tests for BillingInfo
# base path: https://v2.namsor.com/NamSorAPIv2
# Read the billing information (company name, address, phone, vat ID)
# @param character token
# @return [BillingInfoInOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("Charge", {
# tests for Charge
# base path: https://v2.namsor.com/NamSorAPIv2
# Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email.
# @param InlineObject inline.object (optional)
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("CorporateKey", {
# tests for CorporateKey
# base path: https://v2.namsor.com/NamSorAPIv2
# Setting an API Key to a corporate status.
# @param character api.key
# @param character corporate
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("DebugLevel", {
# tests for DebugLevel
# base path: https://v2.namsor.com/NamSorAPIv2
# Update debug level for a classifier
# @param character logger
# @param character level
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("InvalidateCache", {
# tests for InvalidateCache
# base path: https://v2.namsor.com/NamSorAPIv2
# Invalidate system caches.
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("NamsorCounter", {
# tests for NamsorCounter
# base path: https://v2.namsor.com/NamSorAPIv2
# Get the overall API counter
# @return [SoftwareVersionOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("PaymentInfo", {
# tests for PaymentInfo
# base path: https://v2.namsor.com/NamSorAPIv2
# Get the Stripe payment information associated with the current google auth session token.
# @param character token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ProcureKey", {
# tests for ProcureKey
# base path: https://v2.namsor.com/NamSorAPIv2
# Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret.
# @param character token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("RedeployUI", {
# tests for RedeployUI
# base path: https://v2.namsor.com/NamSorAPIv2
# Redeploy UI from current dev branch.
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("RedeployUI1", {
# tests for RedeployUI1
# base path: https://v2.namsor.com/NamSorAPIv2
# Redeploy UI from current dev branch.
# @param character live
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("RemoveUserAccount", {
# tests for RemoveUserAccount
# base path: https://v2.namsor.com/NamSorAPIv2
# Subscribe to a give API plan, using the user's preferred or default currency.
# @param character token
# @return [APIPlanSubscriptionOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("Shutdown", {
# tests for Shutdown
# base path: https://v2.namsor.com/NamSorAPIv2
# Stop learning and shutdown system.
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SoftwareVersion", {
# tests for SoftwareVersion
# base path: https://v2.namsor.com/NamSorAPIv2
# Get the current software version
# @return [SoftwareVersionOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SourceStats", {
# tests for SourceStats
# base path: https://v2.namsor.com/NamSorAPIv2
# Print basic source statistics.
# @param character source
# @return [SystemMetricsOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("Stats", {
# tests for Stats
# base path: https://v2.namsor.com/NamSorAPIv2
# Print basic system statistics.
# @return [SystemMetricsOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("StripeConnect", {
# tests for StripeConnect
# base path: https://v2.namsor.com/NamSorAPIv2
# Connects a Stripe Account.
# @param character scope (optional)
# @param character code (optional)
# @param character error (optional)
# @param character error.description (optional)
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SubscribePlan", {
# tests for SubscribePlan
# base path: https://v2.namsor.com/NamSorAPIv2
# Subscribe to a give API plan, using the user's preferred or default currency.
# @param character plan.name
# @param character token
# @return [APIPlanSubscriptionOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("UpdateBillingInfo", {
# tests for UpdateBillingInfo
# base path: https://v2.namsor.com/NamSorAPIv2
# Sets or update the billing information (company name, address, phone, vat ID)
# @param character token
# @param BillingInfoInOut billing.info.in.out (optional)
# @return [BillingInfoInOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("UpdateLimit", {
# tests for UpdateLimit
# base path: https://v2.namsor.com/NamSorAPIv2
# Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit).
# @param integer usage.limit
# @param character hard.or.soft
# @param character token
# @return [APIPeriodUsageOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("UpdatePaymentDefault", {
# tests for UpdatePaymentDefault
# base path: https://v2.namsor.com/NamSorAPIv2
# Update the default Stripe card associated with the current google auth session token.
# @param character defaut.source.id
# @param character token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("UserInfo", {
# tests for UserInfo
# base path: https://v2.namsor.com/NamSorAPIv2
# Get the user profile associated with the current google auth session token.
# @param character token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("VerifyEmail", {
# tests for VerifyEmail
# base path: https://v2.namsor.com/NamSorAPIv2
# Verifies an email, based on token sent to that email
# @param character email.token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("VerifyRemoveEmail", {
# tests for VerifyRemoveEmail
# base path: https://v2.namsor.com/NamSorAPIv2
# Verifies an email, based on token sent to that email
# @param character email.token
# @return [APIKeyOut]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("Vet", {
# tests for Vet
# base path: https://v2.namsor.com/NamSorAPIv2
# Vetting of a source.
# @param character source
# @param character vetted
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.