New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

thread-link

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thread-link

ThreadLink client

latest
npmnpm
Version
1.0.15
Version published
Maintainers
0
Created
Source

This library provides a client for interacting with Thread Link's public and admin endpoints. It includes both a programmatic interface and command-line tools for ease of use.

Table of Contents

  • Installation
  • Usage
  • CLI
  • Contributing
  • License

Installation

You can install the library via npm:

npm install thread-link

Usage

Public Client

The public client provides methods to interact with Thread Link's public endpoints. Here's an example of how to use the public client:

import { PublicClient } from 'thread-link';

const publicClient = new PublicClient();

publicClient.getMessages()
   .then(messages => console.log(messages))
   .catch(error => console.error(error));

Admin Client

The admin client provides methods to interact with Thread Link's admin endpoints. Here's an example of how to use the admin client:

import { AdminClient } from 'thread-link';

const adminClient = new AdminClient();

adminClient.getAccounts()
   .then(accounts => console.log(accounts))
   .catch(error => console.error(error));

CLI

The library includes command-line interfaces (CLI) for interacting with both public and admin endpoints.

Public CLI

The public CLI can be used to interact with public endpoints. Here's an example:

npx thread-link get-messages

Commands

  • get-messages: Retrieve messages
  • get-threads: Retrieve threads
  • get-topics: Retrieve topics

Admin CLI

The admin CLI can be used to interact with admin endpoints. Here's an example:

npx thread-link-admin get-accounts

Commands

  • get-accounts: Retrieve accounts
  • get-provider-configurations: Retrieve provider configurations

Contributing

We welcome contributions!

License

This project is licensed under the MIT License. See the LICENSE file for details.

FAQs

Package last updated on 06 Aug 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