Giter Club home page Giter Club logo

trello's Introduction

This repository is no longer maintained

We recommend this fork instead.

Trello

Clojure wrapper for the Trello API.

To generate your api key and api token visit: https://trello.com/1/appKey/generate

Usage

Trello is available from Clojars.org. To use it, add the following as a dependency in Leiningen.

[trello "0.1.2-SNAPSHOT"]

Authentication

This library does NOT implement OAuth.

You'll need to get an access token from Trello. To do this you can use the following URL

https://trello.com/1/authorize?key=YOURKEY&name=My+Application&expiration=never&response_type=token&scope=read,write

Examples

The first things you'll need to do are to fetch an API key and auth token

(require [trello.core :as trello])

(def auth 
  {:key "YOURKEY"
   :token "YOURAUTHTOKEN"})

Listing all boards

(def auth 
  {:key "YOURKEY"
   :token "YOURAUTHTOKEN"})
   
(def all-boards (trello/boards auth))

(doseq [board all-boards]
  (println (:name board)))
  

Fetch a list of active Trello boards

(trello/active-board-names auth)

;; => ("Barnaby Edwards" "Business" "Gather Requirements (product backlog)" "General" "Programming/Study")

CLI

You can run this as a command line app using Lein. The CLI requires a file called config.clj to be set in the root directory with the following info

config.clj

{
  :key "YOURKEY"
  :token "YOURTOKEN"
}

Show all your Trello boards

lein run boards

General notes

  • A memoized request can be produced by using the m- version of a function. I.e m-boards

License

Copyright © BoxUK

Distributed under the Eclipse Public License, the same as Clojure.

trello's People

Contributors

craigmarvelley avatar jenkoian avatar owainlewis avatar rodnaph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trello's Issues

Multiple files

Do you think it's better/cleaner to put each item into a separate namespace or keep everything in core?

i.e boards.clj and cards.clj

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.