Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isayme/processon
Node.js SDK for processon
https://github.com/isayme/processon
Last synced: 12 days ago
JSON representation
Node.js SDK for processon
- Host: GitHub
- URL: https://github.com/isayme/processon
- Owner: isayme
- License: mit
- Created: 2016-01-15T02:05:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-03T04:58:35.000Z (over 8 years ago)
- Last Synced: 2024-11-29T12:36:38.864Z (25 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 关于
Node.js SDK for [processon](https://www.processon.com/).![travis](https://img.shields.io/travis/isayme/processon.svg)
[![Coverage Status](https://coveralls.io/repos/github/isayme/processon/badge.svg?branch=master)](https://coveralls.io/github/isayme/processon?branch=master)## Install
> npm install processon## API
````
var Client = require('processon').Client;
var client = new Client({
access_token: 'your access_token'
});
````### client.getUser(callback)
获取用户信息, 返回值详情参见[官方说明](http://open.processon.com/wiki#user).### client.getDiagrams([params, ]callback)
获取用户所有文件, 返回值详情参见[官方文档](http://open.processon.com/wiki#diagrams).通过params传入可选的参数: `page_size `, `cur_page`, `chart_title`, `teamid`, `status`.
### client.getRecentDiagrams(params, callback)
获取用户最近修改过的文件, 返回值详情参见[官方文档](http://open.processon.com/wiki#history).通过params传入可选的参数: `count`.
### client.getCollaDiagrams(params, callback)
获取用户协作的文件, 返回值详情参见[官方文档](http://open.processon.com/wiki#colla).通过params传入可选的参数: `page_size `, `cur_page`.
## Test
> npm test