0.3.5 • Published 11 years ago

mypeople v0.3.5

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

MyPeople Node API

MyPeople API 다시 만들었습니다. 물론 DAUM에서 제공한 코드 중 일부는 복사했습니다. (https://github.com/daumdna/apis/tree/master/Samples/8.Mypeople/BotAPI/Node.js/mypeople)

  • hubot 을 만들기위해서 급하게 만든 프로젝트입니다. 물론 대충 만들어서 테스트코드나 코드는 엉망이예요. :-)

Install

$ npm install mypeople

Usage

다운로드 기능은 제가 사용하질 않아서 테스트는 하지 않았습니다. 전 sendMessage, sendGroupMessage 밖에 안써서요.

var Client = require('mypeople').Client;
var client = new Client('KEY');
// or
var client = new Client('KEY', {server: 'https://api.daum.net'});

client.sendMessage(buddyId, content, attach, callback);
client.sendGroupMessage(groupId, content, attach, callback);
client.getFriendInfo(buddyId, callback);
client.getGroupMembers(groupId, callback);
client.exitGroup(groupId, callback);
client.download(fileId, filename);
var Receiver = require('mypeople').Receiver;
var receiver = new Receiver('KEY');
receiver.addListener('message', function(m) {
  console.log(m);
});
receiver.start();

코드 컨트리뷰션은 언제든 환영합니다.

0.3.5

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.2.0

11 years ago

0.2.1

11 years ago

0.3.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago