Code Monkey home page Code Monkey logo

leankitkanban's Introduction

LeanKitKanban

LeanKitKanban is a simple ruby wrapper around the LeanKitKanban API

http://leankitkanban.com/

Build Status

Usage

# configure your account information
LeanKitKanban::Config.email    = "[email protected]"
LeanKitKanban::Config.password = "mypassword"
LeanKitKanban::Config.account  = "myaccount"

# get all boards and returns an array of hashes
@boards      = LeanKitKanban::Board.all

# get the board with specified id as a hash
@board       = LeanKitKanban::Board.find(board_id)

# get all the identifiers for a board, it contains all information needed for other api calls
@identifiers = LeanKitKanban::Board.get_identifiers(board_id)

# get the newest version of the board if it exists
@board_version = LeanKitKanban::Board.get_newer_if_exists(board_id, version_id)

# gets the last 5 events that occured since version_id
@last_events   = LeanKitKanban::Board.get_board_history_since(board_id, version_id)


# get a specific card from a board
@card = LeanKitKanban::Card.find(board_id, card_id)

# get a specific card from a board by external id
@card = LeanKitKanban::Card.find_by_external_id(board_id, external_id)

# add a card, specified in JSON, to the board
@response = LeanKitKanban::Card.add(board_id, lane_id, position, body)

# add multiple cards, specified in JSON, to the board
@response = LeanKitKanban::Card.add_multiple(board_id, comment, cards)

# update a card specified in JSON
@response = LeanKitKanban::Card.update(board_id, body)

# delete a card from the board
@response = LeanKitKanban::Card.delete(board_id, card_id)

# delete multiple cards from the board
@response = LeanKitKanban::Card.delete_multiple(board_id, card_ids)

# move a card to another lane
@response = LeanKitKanban::Card.move(board_id, card_id, lane_id, position)

# get board backlog
@backlog = LeanKitKanban::Backlog.fetch(board_id)

# get board archive
@archive = LeanKitKanban::Archive.fetch(board_id)

Contributing

Fork this repo and send me pull requests.

All specs are in the /spec directory, to run them:

rspec

Additional information

Copyright (c) 2011 Marc Lainez

leankitkanban's People

Contributors

mlainez avatar rhyd avatar noahpryor avatar zsoltfabok avatar

Watchers

Jason Slagle avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.