halnique / php-slack-api
Simple PHP wrapper interfaces for Slack APIs.
v1.0.1
2019-06-07 08:39 UTC
Requires
- php: ^7.1.3
- ext-json: *
- guzzlehttp/guzzle: ^6.3
- psr/log: ^1.1
- vlucas/phpdotenv: ^3.3
Requires (Dev)
- fzaninotto/faker: ^1.8
- halnique/php-string: ^1.0
- php-coveralls/php-coveralls: ^2.1
- phpunit/php-invoker: ^2.0
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-12-05 03:33:47 UTC
README
Installation
$ composer require halnique/php-slack-api
Usage
use Halnique\Slack; $client = Slack\WebAPI\Client::create(); $apiTestResult = $client->call(Slack\WebAPI\Endpoints\HttpMethod::get(), 'api.test'); $authTestResult = $client->call(Slack\WebAPI\Endpoints\HttpMethod::post(), 'auth.test'); $usersLookupByEmailResult = $client->call(Slack\WebAPI\Endpoints\HttpMethod::get(), 'users.lookupByEmail', [ 'email' => 'address@gmail.com', ]);