Wallogit.com
2017 © Pedro Peláez
Fork from https://github.com/10w042/slack-api, (*1)
A super simple wrapper for Slack API, (*2)
Requires > PHP 5., (*3)
composer require tigokr/slack-api
Or download and include the php file., (*4)
See more methods on the Slack API documentation., (*5)
List users, (*6)
$Slack = new Slack('xoxp-0123456789-0123456789-0123456789-1a1a11');
print_r($Slack->call('users.list'));
Invite user to a channel, (*7)
$Slack = new Slack('xoxp-0123456789-0123456789-0123456789-1a1a11');
print_r($Slack->call('channels.invite', array(
'channel' => 'C1234567890',
'user' => 'U1234567890'
)));
Copyright (c) 2014, (*8)
Licensed under the MIT License., (*9)