Yongzhenlow Slack Api Save

A super simple PHP wrapper for Slack API

Project README

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.

Open Source Agenda is not affiliated with "Yongzhenlow Slack Api" Project. README Source: yongzhenlow/slack-api
Stars
35
Open Issues
0
Last Commit
4 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating