How to use the clubhouse-lib.create function in clubhouse-lib

To help you get started, we’ve selected a few clubhouse-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andjosh / clubhouse-cli / src / lib / client.ts View on Github external
import Clubhouse from 'clubhouse-lib';

import { loadConfig } from './configure';

const config = loadConfig();

if (!config) {
    console.error('Please run install to configure API access');
    process.exit(1);
}

const client = Clubhouse.create(config.token);

export default client;
github Tubitv / clubhouse-cli / src / clubhouse.ts View on Github external
export function createStory(token: string, story: IStory): Promise {
  const client = require('clubhouse-lib').create(token);
  const reqObj = pick(story, ['name', 'description', 'story_type', 'epic_id', 'project_id', 'labels']);

  if (!isNullOrUndefined(story.owner_ids)) {
    reqObj.owner_ids = Array.isArray(story.owner_ids) ? story.owner_ids : [story.owner_ids];
  }
  return client.createStory(reqObj);
}
github andjosh / clubhouse-cli / src / lib / client.ts View on Github external
import Clubhouse from 'clubhouse-lib';

import { loadConfig } from './configure';

const config = loadConfig();

const client = Clubhouse.create(config.token);

export default client;

clubhouse-lib

A Promise based library to the Shortcut REST API

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular clubhouse-lib functions

Similar packages