99designs-tasks 中文文档教程
99designs Tasks
用于 Node.js 的 99designs Tasks API 客户端
Installation
$ npm install --save 99designs-tasks
Usage
简单用法如下所示:
var tasks = require('99designs-tasks');
var api = tasks.apiClient('yourapikey');
api.createTask({ body: 'your task brief', urls: ['http://example.org/file.png'], filenames: ['/path/to/file.pdf'], function(err, task) {
if (err) {
console.error(err);
}
console.log(task);
});
99designs Tasks
99designs Tasks API client for Node.js
Installation
$ npm install --save 99designs-tasks
Usage
Simple usage looks like:
var tasks = require('99designs-tasks');
var api = tasks.apiClient('yourapikey');
api.createTask({ body: 'your task brief', urls: ['http://example.org/file.png'], filenames: ['/path/to/file.pdf'], function(err, task) {
if (err) {
console.error(err);
}
console.log(task);
});