This release is a pre-release and may not be stable for production use.
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)
A script like the one above would give output similar to this
{u'ok': True}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file autoslack-0.0.1.dev1.tar.gz.
File metadata
- Download URL: autoslack-0.0.1.dev1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7161187273f1271a1621271ddbbdc8c56381a8723f0cbb09afc9d745b7a04cd2
|
|
| MD5 |
070fe964b014fda6124e2ef00a05d7ab
|
|
| BLAKE2b-256 |
dfad2c5c8b538c0390d5aafccb0d808fe8b0252b2a122109dec0114908bb2f6c
|