0.13.0 • Published 3 years ago

clubhouse-lib v0.13.0

Weekly downloads
2,823
License
MIT
Repository
github
Last release
3 years ago

Getting Started

Installation

You can install clubhouse-lib with NPM or Yarn.

npm install --save clubhouse-lib

or

yarn add clubhouse-lib

How To Get an API Token

The Clubhouse API uses token-based authentication, you will need one to use this library.

To generate an API token, go to https://app.clubhouse.io/settings/account/api-tokens. To make it easier to explore our API, we recommend saving this token as an environment variable in your local dev environment:

export CLUBHOUSE_API_TOKEN="YOUR API TOKEN HERE"

This will allow you to copy and paste many examples in the documentation to try them out.

Requests made with a missing or invalid token will get a 401 Unauthorized response. All requests must be made over HTTPS. Tokens provide complete access to your Clubhouse account, so keep them secure. Don’t paste them into your source code, use an environment variable instead. For security reasons, we will immediately invalidate any tokens we find have been made public.

Usage

import Clubhouse from 'clubhouse-lib';

const client = Clubhouse.create('your token value'); // See https://github.com/clubhouse/clubhouse-lib#how-to-get-an-api-token

client.listMembers().then(console.log);

client.getMember('')
  .catch(x => console.error(x.body))
  .then(console.log);

client.listProjects().then(console.log);

Play with It

You can play with it in your web browser with this live playground:

Documentation

Documentation for the REST API.

0.13.0

3 years ago

0.12.0

3 years ago

0.11.0-rc.0

3 years ago

0.11.0

3 years ago

0.10.0

4 years ago

0.9.0

5 years ago

0.9.0-rc.4

5 years ago

0.9.0-rc.3

5 years ago

0.9.0-rc.2

5 years ago

0.9.0-rc.1

5 years ago

0.9.0-rc.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago