Awesome Open Source
Awesome Open Source

Slack API

A super simple wrapper for Slack API

Requires > PHP 5.

Installation

Download and include the php file.

Usage

See more methods on the Slack API documentation.

Initializing
Requires a legacy token, read more about it here.

$Slack = new Slack('xoxp-your-legacy-token');

List users

$Slack = new Slack('xoxp-your-legacy-token');
print_r($Slack->call('users.list'));

Invite user to a channel

$Slack = new Slack('xoxp-your-legacy-token');
print_r($Slack->call('channels.invite', array(
  'channel' => 'C1234567890',
  'user' => 'U1234567890'
)));

Author

License

Copyright (c) 2014

Licensed under the MIT License.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
php (16,075
slack (309
slack-api (21

Find Open Source By Browsing 7,000 Topics Across 59 Categories