Home

Awesome

node-slack-api

Installation

as soon as I implement more slack methods, I will publish to npm. (be my guest to help me)

methodstatus
api.testOK
auth.testOK
channels.historyOK
channels.infoOK
channels.listOK
users.infoOK
users.listOK

How to use ?

  var SlackClient = require('node-slack-api')('<YOUR TOKEN HERE'>);
  
  // Users Info
  SlackClient.usersInfo({ user: 'U83912' }, function(err, user, rawResponse){});
  
  // Users list
  SlackClient.userslist(function(err, members, rawResponse){ });
  
  // Channels Info
  SlackClient.channelsInfo({ channel: 'U83912' }, function(err, channels, rawResponse){});
  
  // Channels History
  SlackClient.channelsHistory({ channel: 'U83912' }, function(err, messages, rawResponse){});

  

Tests ?

 $ npm install
 $ npm test