README
Insight SDK for JavaScript
Usage
import { InsightClient } from "@shinkashi/insight-sdk";
const cmp = new InsightClient({ url, apiKey, apiSecret });
console.log(await cmp.customer.getByID("me").name);
Solution Insight SDK for JavaScript
<script type="module">
import shinkashiInsightSdk from 'https://cdn.skypack.dev/@shinkashi/insight-sdk';
</script>
import { InsightClient } from "@shinkashi/insight-sdk";
const cmp = new InsightClient({ url, apiKey, apiSecret });
console.log(await cmp.customer.getByID("me").name);