targetprocess-rest-api
TypeScript API wrapper for Targetprocess
Last updated a year ago by jameskmonger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install targetprocess-rest-api 
SYNC missed versions from official npm registry.

targetprocess

TypeScript API wrapper for Targetprocess

Installation

npm install targetprocess-rest-api

Usage

import { Targetprocess } from "targetprocess-rest-api";

// initialise the API
const api = new Targetprocess("subdomain", "yourusername", "yourpassword");

// get a user story
const userStory = await getUserStory(123);

// get a task
const task = await getTask(456);

// get a bug
const bug = await getBug(789);

// add a time entry to an entity
const time = await addTime(456, 0.75, 4.25, new Date('2018-09-01'), "Integration testing");

// get a custom value for a project
const value = await getCustomValueForProject(123, "Some Custom Value");

Errors

getUserStory, getTask, getBug and addTime can all throw an error with the following format:

{
    statusCode: number;
    message: string;
}

License

Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence

Current Tags

  • 0.3.0                                ...           latest (a year ago)

3 Versions

  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |