2017 © Pedro Peláez
 

library slack-api

image

tigokr/slack-api

  • Thursday, April 7, 2016
  • by tigokr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,586 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

Slack API

Fork from https://github.com/10w042/slack-api, (*1)

A super simple wrapper for Slack API, (*2)

Requires > PHP 5., (*3)

Installation

composer require tigokr/slack-api

Or download and include the php file., (*4)

Usage

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'
)));

Author

License

Copyright (c) 2014, (*8)

Licensed under the MIT License., (*9)

The Versions

07/04 2016

dev-master

9999999-dev

  Sources   Download

07/04 2016

v1.0.2

1.0.2.0

  Sources   Download

07/04 2016

v1.0.1

1.0.1.0

  Sources   Download

17/03 2016

v1.0

1.0.0.0

  Sources   Download