@quba/sensitive-data-protection
v0.0.3
Published
SDK for Sensitive Data Protection Service
Maintainers
Readme
@quba/[email protected]
A TypeScript SDK client for the app.quba.ae API.
Usage
First, install the SDK from npm.
npm install @quba/sensitive-data-protection --saveNext, try it out.
import {
Configuration,
SensitiveDataProtectionApi,
} from '@quba/sensitive-data-protection';
import type { HealthCheckRequest } from '@quba/sensitive-data-protection';
async function example() {
console.log("🚀 Testing @quba/sensitive-data-protection SDK...");
const api = new SensitiveDataProtectionApi();
try {
const data = await api.healthCheck();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Documentation
API Endpoints
All URIs are relative to https://app.quba.ae/api/sdp
| Class | Method | HTTP request | Description | ----- | ------ | ------------ | ------------- SensitiveDataProtectionApi | healthCheck | GET /health | Health SensitiveDataProtectionApi | scanText | POST /scan | Scan Text
