UNPKG

cobalt-int-sdk

Version:

Wrapper around Cobalt Intelligence services, such as the Secretary of State API.

23 lines 893 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TINVerification = void 0; const axios_1 = __importDefault(require("axios")); class TINVerification { constructor(apiKey) { this.apiKey = apiKey; } async verifyTIN(tin, businessName) { const url = `https://apigateway.cobaltintelligence.com/tinVerification?tin=${encodeURIComponent(tin)}&businessName=${encodeURIComponent(businessName)}`; const axiosResponse = await axios_1.default.get(url, { headers: { 'x-api-key': this.apiKey } }); return axiosResponse.data; } } exports.TINVerification = TINVerification; //# sourceMappingURL=tinVerification.js.map