tigokr/slack-api

There is no license information available for the latest version (v1.0.2) of this package.

Maintainers

Details

github.com/tigokr/slack-api

Source

Installs: 4 474

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 12

v1.0.2 2016-04-07 17:07 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:58:35 UTC


README

Fork from https://github.com/10w042/slack-api

A super simple wrapper for Slack API

Requires > PHP 5.

Installation

composer require tigokr/slack-api

Or 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.