halnique/php-slack-api

Simple PHP wrapper interfaces for Slack APIs.

v1.0.1 2019-06-07 08:39 UTC

This package is auto-updated.

Last update: 2024-12-05 03:33:47 UTC


README

Build Status Coverage Status Maintainability Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

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