Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@great-detail/support-sdk

Package Overview
Dependencies
Maintainers
0
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@great-detail/support-sdk

JavaScript SDK for the Great Detail Support System

  • 0.14.3
  • npm
  • Socket score

Version published
Weekly downloads
125
decreased by-78.81%
Maintainers
0
Weekly downloads
 
Created
Source

Great Detail Support System SDK - JS

Getting Started

import Client, { TokenAuthentication } from "@great-detail/support-sdk";

const auth = new TokenAuthentication();
const sdk = new Client(auth);

// List the stored contacts
const result = await sdk.contact.list.send().json();
console.log(result);

Handling Webhook Events

import Client from "@great-detail/support-sdk";

const { event } = await new Client().webhook
  .event({
    request,
  })
  .catch((error) => {
    // ...
  });

console.log(event);

Installation

npm install @great-detail/support-sdk

Authentication

The following authentication methods are supported with this SDK.

Basic Authentication

Note: This is the primary authentication method intended to be used with this SDK.

import { BasicAuthentication } from "@great-detail/support-sdk";

// Note: This api key should not be hardcoded into your use-case
process.env.SUPPORT_KEY_NAME = "...";
process.env.SUPPORT_KEY_PASSWORD = "...";

// Set api key in environment variable: SUPPORT_API_KEY
const auth = new BasicAuthentication();

Public Authentication

Note: Not all of the APIs will work with the public authentication method.

import { PublicAuthentication } from "@great-detail/support-sdk";

const auth = new PublicAuthentication();

License

Proprietary © 2024 Great Detail Ltd

Contact

Great Detail Ltd: <info@greatdetail.com>

Dom Webber: https://domwebber.dev <dom.webber@greatdetail.com>

Keywords

FAQs

Package last updated on 21 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc