Giter VIP home page Giter VIP logo

libqq's Introduction

libqq v0.1.0

LibQQ是基于WebQQ 3.0协议的Nodejs版操作库,你可以基于LibQQ开发自己的QQ客户端。

特征

  1. 依赖于thenjs框架
  2. 提供基本的操作接口:登录、验证码、接收消息、发送消息、获取好友、获取头像

安装

npm install libqq

使用

默认维护一个libqq

var libqq = reqiure("libqq");		//系统默认初始化了一个libqq
libqq.setUin(123456);
libqq.setPassword("123456");
then(function(defer){
	libqq.login(defer);
}).then(function(defer, value){
	console.log("已经登录");
}.function(defer, error){
	console.log("登录失败");
});

维护多个libqq

var QQClient = reqiure("libqq").QQClient;
var libqq = new QQClient({
	uin : 123456,
	password: "123456"
});
then(function(defer){
	libqq.login(defer);
}).then(function(defer, value){
	console.log("已经登录");
}.function(defer, error){
	console.log("登录失败");
});

API

参考libqq API

libqq's People

Contributors

elthon avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.