Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

AutoSlack is a simple module designed to automate some tasks for http://slack.com.

Project Description

AutoSlack is a simple module designed to automate some tasks for http://slack.com. Currently it includes an invite method for automatically inviting persons to a Slack community.

Installation

pip install autoslack

(you could also simply add autoslack to your requirements.txt, setup.py or buildout file)

Usage

To use this you will need to generate a token by visiting https://api.slack.com/web#authentication, the token is passed to the autoslack.invite() method.

The invite() method returns feedback from the Slack API in json format

import autoslack
output = autoslack.invite(group="SLACKCOMMUNITYNAME",
                token="XXXXXXX",
                firstname="XXXXXXXX",
                lastname="XXXXXXX",
                emailaddress="XXXXXXX",
                channels=['XXXXX','XXXXX']
                )
print(output)

Note

The channels argument is optional.

A script like the one above would give output similar to this

{u'ok': True}
Release History

Release History

This version
History Node

0.0.1.dev1

History Node

0.0.0.dev1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
autoslack-0.0.1.dev1.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source May 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting