All Projects → useshortcut → shortcut-client-js

useshortcut / shortcut-client-js

Licence: other
The official JavaScript client library for the Shortcut (formerly Clubhouse) REST API.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to shortcut-client-js

Focusedtask
MacOS menu bar todo app built with Electron, React and Redux. It goals is to help you do deep work.
Stars: ✭ 67 (-45.97%)
Mutual labels:  shortcut
Selectnextoccurrence
A Visual Studio Extension that selects the next occurrences of the current selection and adds multiple cursors for editing
Stars: ✭ 129 (+4.03%)
Mutual labels:  shortcut
static-hands
⌨️🤯 Stop moving hands, and start code fast ⚡⚡
Stars: ✭ 36 (-70.97%)
Mutual labels:  shortcut
Globalhooks
Allows you to create global keyboard events
Stars: ✭ 74 (-40.32%)
Mutual labels:  shortcut
Autohotkey
⚙️ My Autohotkey productivity suite that includes shortcuts, hotstrings, hotkeys, apps/utilities, AutoCorrect
Stars: ✭ 113 (-8.87%)
Mutual labels:  shortcut
Intellij Key Promoter X
Modern IntelliJ plugin to learn shortcuts for buttons
Stars: ✭ 2,689 (+2068.55%)
Mutual labels:  shortcut
Vscode Surround
🔥A simple yet powerful extension to add wrapper templates around your code blocks
Stars: ✭ 60 (-51.61%)
Mutual labels:  shortcut
metaKeyboard
turn a common keyboard into a 61-key keyboard for the keyboard shortcut fun like you, I'm a programer, I want to improve coding efficiency
Stars: ✭ 30 (-75.81%)
Mutual labels:  shortcut
Ng Keyboard Shortcuts
Dead Simple Keyboard Shortcuts Management for Angular
Stars: ✭ 121 (-2.42%)
Mutual labels:  shortcut
hakyll-shortcut-links
✂️ Hakyll shortcut-links in markdown files
Stars: ✭ 12 (-90.32%)
Mutual labels:  shortcut
Xcactionbar
"Alfred for Xcode" plugin
Stars: ✭ 1,217 (+881.45%)
Mutual labels:  shortcut
N1 Unsubscribe
Plugin for Nylas Mail that adds a quick unsubscribe button for email.
Stars: ✭ 105 (-15.32%)
Mutual labels:  shortcut
Androidappshortcuts
App Shortcuts for Android on Pre Nougat 7.1!
Stars: ✭ 223 (+79.84%)
Mutual labels:  shortcut
Zap
Blazing fast web shortcuts.
Stars: ✭ 69 (-44.35%)
Mutual labels:  shortcut
iOSShortcuts
A collection of shortcuts for the Shortcuts app.
Stars: ✭ 60 (-51.61%)
Mutual labels:  shortcut
Msys2 Mingw Shortcut Menus
Configuration files needed to set up right-click shortcut in context menus for MSYS2, MinGW32/64 bash
Stars: ✭ 60 (-51.61%)
Mutual labels:  shortcut
Screenshots
A screenshot plugin for electron
Stars: ✭ 130 (+4.84%)
Mutual labels:  shortcut
react-shortcut
Convenient React component that detects if the given key combination is pressed, and triggers a callback
Stars: ✭ 16 (-87.1%)
Mutual labels:  shortcut
keybind
ClojureScript key bindings (shortcut) library
Stars: ✭ 85 (-31.45%)
Mutual labels:  shortcut
Pasteintofile
Paste Clipboard Contents Into Files Directly (New Version Released 🔥)
Stars: ✭ 231 (+86.29%)
Mutual labels:  shortcut

Shortcut logo

@useshortcut/client

A library for interacting with the Shortcut (formerly Clubhouse) REST API

Current npm package version. Current CircleCI build status. PRs welcome! Follow @useshortcut


Getting Started

Installation

You can install @useshortcut/client with NPM or Yarn.

npm install --save @useshortcut/client

or

yarn add @useshortcut/client

How to Get an API Token

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

To generate an API token, go to https://app.shortcut.com/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 SHORTCUT_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 Shortcut 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

To see all available exports, take a look at the API documentation or check out the .d.ts files in this repository.

import { ShortcutClient } from '@useshortcut/client';
// const { ShortcutClient } = require('@useshortcut/client');

const shortcut = new ShortcutClient('YOUR_API_TOKEN'); // See https://github.com/useshortcut/shortcut-client-js#how-to-get-an-api-token

shortcut.getCurrentMemberInfo().then((response) => console.log(response?.data));

shortcut.listProjects().then((response) => console.log(response?.data));

Play with It

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

Documentation

Documentation for this client.

Documentation for the REST API.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].