Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenshin/node-zblog
zblog api for Node.js
https://github.com/kenshin/node-zblog
Last synced: 28 days ago
JSON representation
zblog api for Node.js
- Host: GitHub
- URL: https://github.com/kenshin/node-zblog
- Owner: Kenshin
- License: mit
- Created: 2012-05-06T00:35:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-29T03:35:12.000Z (over 12 years ago)
- Last Synced: 2024-10-04T22:08:58.518Z (about 1 month ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##zblog api for Node.js Library
基于Node.js版的zblog api### 使用方法:
安装:
$ npm install -g node-zblog使用:
var zblog = require("node-zblog").method,
config = require("node-zblog").config,
mc = require("node-zblog").event_name,
url = new config.zblog_config( 'www.k-zone.cn', '80', '/zblog/api/index.asp', 'null', 'null' ),
//call get_articles
zblog.get_articles( url, m_pagesize, page );
//listener mc.GET_ARTICLES event
zblog.once( mc.GET_ARTICLES + m_pagesize + page + "_complete", function( result ) {
//call event
m_events.emit( "articles_complete" + m_pagesize + page, result );
});
//listener article complete event
m_events.once( "articles_complete" + m_pagesize + page, function( result ) {
//TO DO
});测试:
..\node_modules\node-zblog\test\node test.js## 更新日志:
version 1.1.0 [2012-5-29]
* 增加了出错处理version 1.0.0 [2012-05-06]
* 完成了zblog api for node.js的全部功能。## 联系方式:
* 博客:[k-zone.cn](http://www.k-zone.cn/zblog)
* 微博:[新浪微博](http://weibo.com/23784148)
* 联络:kenshin[AT]ksria.com## 版权和许可:
Copyright 2012 [k-zone.cn](http://www.k-zone.cn/zblog)
Licensed under MIT or GPL Version 2 licenses