kn / slack

A simple and comprehensive Slack API client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack

slack is a Python package that provides an interface to Slack listed officially on slack.com.

Build Status

Installation

Install via pip

$ pip install pyslack

Install from source:

$ git clone git://github.com/kn/slack.git
$ cd slack
$ python setup.py install

Getting Started

You need to get your Slack token from api.slack.com.

import slack
import slack.chat
slack.api_token = 'your_token'
slack.chat.post_message('#eng', 'Hello slackers!', username='mybot')

import slack.users
slack.users.list()

Available Methods

All methods in a preview release of Slack API are available.

About

A simple and comprehensive Slack API client.

License:Other


Languages

Language:Python 100.0%