Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kanbanize-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kanbanize-api

This is a thin wrapper around the Kanbanize v1 API, written for (now) nodejs.

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Kanbanize API

This is a thin wrapper around the Kanbanize v1 API, written for (now) nodejs.

I intend to allow the module to be consumed in web contexts as well.

Todo

  1. Test whether it works in a browser
  2. Add unit tests
  3. Add addAttachment method.

Example Usage

In Node

// @todo get rid of .default
const KanbanizeAPI = require("./kanbanize-api/").default;
const API_KEY = `YOUR_API_KEY_HERE`;
const SUBDOMAIN = 'YOUR_COMPANY_SUBDOMAIN';

async function example() {
	const API = new KanbanizeAPI.V1(SUBDOMAIN, API_KEY);
	const allTasks = await API.getAllTasks({
		boardid: 64
	});

	allTasks.forEach(task =>{
		//do something with the data
	})
}

example();

Methods

See Type Definitions for method parameter and return shapes.

 getProjectsAndBoards(): Promise<projectsAndBoards>;
	getBoardStructure(params: boardidRequired): Promise<boardStructure>
	getFullBoardStructure(params: boardidRequired): Promise<fullBoardStructure>
	getBoardSettings(params: boardidRequired): Promise<boardSettings>
	getBoardActivities(params: boardActivityParameters): Promise<boardActivityOutput>
	createNewTask(params: createNewTaskParameters): Promise<createNewTaskOutput>
	deleteTask(params: BasicTaskParameters): Promise<taskOperationOutput>
	getTaskDetails(params: getTaskDetailsParamters): Promise<getTaskDetailsOutput>
	getAllTasks(params: getAllTaskParameters): Promise<getAllTasksOutput>
	addComment(params: addCommentParameters): Promise<addCommentOutput>
	moveTask(params: moveTaskParameters): Promise<taskOperationOutput>
	editTask(params: editTaskParameters): Promise<taskOperationOutput>
	blockTask(params: blockTaskParameters): Promise<taskOperationOutput>
	addSubtask(params: addSubtaskParameters): Promise<addSubtaskOutput>
	editSubtask(params: editSubtaskParameters): Promise<taskOperationOutput>
	logTime(params: logTimeParameters): Promise<logTimeOutput>
	getLinks(params: getLinksParameters): Promise<getLinksOutput>
	editLink(params: editLinkParameters): Promise<taskOperationOutput>
	archiveTask(params: archiveTaskParameters): Promise<taskOperationOutput>
	editCustomFields(params: editCustomFieldsParameter): Promise<taskOperationOutput>
	getAttachment(params: getAttachmentParameters): Promise<any>
	getLogTimeActivities(params: getLogTimeActivitiesParameters): Promise<getLogTimeActivitiesOutput> 
	getTasksWithLogTime(params: getTasksWithLogTimeParameters): Promise<getTasksWithLogTimeOutput>

FAQs

Package last updated on 11 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc