Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

slack-users

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slack-users

Get the users of a slack community.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

slack-users NPM version NPM downloads Build Status

Get the users of a slack community.

Install

Install with npm:

$ npm install --save slack-users

Usage

var slackUsers = require('slack-users');

API

slackUsers

Get the slack users for the specified team.

Params

  • options {Object}: Options object used for getting users.
  • options.team {String}: Name of slack team to get users from.
  • optins.token {String}: Slack token to use when getting users.
  • cb {Function}: Callback functions passing an error if one occurs or an array of users when successful.

Example

var options = {
  team: 'my-slack-team',
  token: 'my-slack-token'
};
slackUsers(options, function(err, users) {
  if (err) return console.error(err);
  console.log(users);
  //=> [
  //=>   {id: '', name: 'doowb', ...},
  //=>   {id: 'USLACKBOT', name: 'slackbot', ...}
  //=> ]
});

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for avice on opening issues, pull requests, and coding standards.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Brian Woodward

License

Copyright © 2016, Brian Woodward. Released under the MIT license.

This file was generated by verb-generate-readme, v0.1.30, on August 29, 2016.

Keywords

api

FAQs

Package last updated on 29 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts