1.1.0 • Published 5 years ago

wrike-node v1.1.0

Weekly downloads
61
License
ISC
Repository
github
Last release
5 years ago

Wrike API

Node.js Wrike.com API wrapper.

Install

npm install --save wrike-node

Usage

const Wrike = require('wrike-node');
const wrike = new Wrike('<access_token>');

wrike
  .get('tasks', { limit: 3 })
  .then(tasks => console.log(tasks));

Reference

new Wrike(accessToken[, apiRegion = 'us', apiVersion = 4])

  • accessToken <String>
  • apiRegion <String> Either 'us' or 'eu' Used to determine the API base URL.
  • apiVersion <Integer>

wrike.get|post|put|delete(path, parameters)

Always returns a Promise, resolving to either:

  1. The result object's data property
  2. A Node.js Readable stream (only when downloading attachments or attachment previews)

Attachments

When creating or updating Wrike attachments, use the following custom parameters:

  • parameters.file <String|Buffer|Blob|Readable stream> E.g. 'Hello world!'
  • parameters.name <String> E.g. 'attachment.txt'
  • parameters.contentType <String> E.g. 'text/plain'
1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago