Socket
Socket
Sign inDemoInstall

leankit-client

Package Overview
Dependencies
70
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    leankit-client

API client for use with LeanKit Kanban


Version published
Maintainers
1
Install size
5.80 MB
Created

Readme

Source

LeanKit Node Client

The LeanKit client module for Node.js provides an easy-to-use set of functions designed to simplify the integration of external systems and utilities with your LeanKit account.

Requirements

  • Node.js
  • A LeanKit account

Installing the client

npm install leankit-client

Client usage

var LeanKitClient = require('leankit-client');
var client = LeanKitClient.createClient('account-name', 'your@email.com', 'your-p@ssw0rd');

client.getBoards(function(err, res){
	console.log(res);
});

Review the tests for a full list of client functions and how to use them.

Proxy support

To use the LeanKit client behind a proxy server, pass an options object to the module constructor that includes the proxy server. For example:

var LeanKitClient = require('leankit-client');
var client = LeanKitClient.createClient('account-name', 'your@email.com', 'your-p@ssw0rd', { 'proxy': 'http://localproxy.com' } );

This options object is the same object used by the request module.

Installing Manually

  • Clone or download the leankit-node-client Github repository.

  • Open a Terminal window, change to the repository folder, and install dependent packages.

      npm install
    
  • Create a folder in your node application's node_modules folder named leankit-client (e.g. `[project-name]/node_modules/leankit-client).

  • Copy all the files and folders in the leankit-node-client folder to the leankit-client folder created in the previous step.

Running Tests

  • Set environment variables for the LeanKit account you wish to test with.

    OSX/Linux

      export LEANKIT_ACCOUNT=your-account-name
      export LEANKIT_EMAIL=your@email.com
      export LEANKIT_PASSWORD=your-p@ssw0rd
      export LEANKIT_TEST_BOARD=name-of-your-test-board
    

    Windows

      setx LEANKIT_ACCOUNT "your-account-name"
      setx LEANKIT_EMAIL "your@email.com"
      setx LEANKIT_PASSWORD "your-p@ssw0rd"
      setx LEANKIT_TEST_BOARD "name-of-your-test-board"
    

    Note: On Windows, you will need to reopen your command prompt after setting environment variables.

  • Install Mocha

      npm install -g mocha
    
  • Open Terminal and change to the LeanKit Node Client directory

  • Run tests

      npm test
    

Questions?

Visit support.leankit.com.

License

The LeanKit Node Client is licensed under MIT. Refer to license.txt for more information.

Keywords

FAQs

Last updated on 17 Apr 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc