A super simple wrapper for Slack API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
Slack.php

README.md

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.

List users

$Slack = new Slack('xoxp-0123456789-0123456789-0123456789-1a1a11');
print_r($Slack->call('users.list'));

Invite user to a channel

$Slack = new Slack('xoxp-0123456789-0123456789-0123456789-1a1a11');
print_r($Slack->call('channels.invite', array(
  'channel' => 'C1234567890',
  'user' => 'U1234567890'
)));

Author

License

Copyright (c) 2014

Licensed under the MIT License.