Skip to content

tigokr/slack-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slack API

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.

About

A super simple wrapper for Slack API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%