1.0.0 • Published 9 years ago

slack-files v1.0.0

Weekly downloads
35
License
MIT
Repository
github
Last release
9 years ago

node-slack-files

A client of Slack Web API on file upload.

https://api.slack.com/methods/files.upload

Installation

Install with npm:

npm install coffee-script -g
npm install slack-files --save

Example

var slack = require('slack-files');
slack.upload('xoxp-aaaaaaaaaa-bbbbbbbbbb-ccccccccccc-dddddddddd', 'sample.txt')
  .spread(function (response, body) { console.log(body.file.url) });

See more examples in ./test/*.coffee