A super simple wrapper for Slack API
Requires > PHP 5.
Download and include the php file.
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'
)));
Copyright (c) 2014
Licensed under the MIT License.