kitchenu / chatwork-php
ChataWork API client library
Installs: 3 247
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: ^4.8.35 || ^5.7
This package is not auto-updated.
Last update: 2024-11-10 05:49:34 UTC
README
ChatWork API Client for PHP.
Installation
$ composer require kitchenu/chatwork-php
Usage
<?php require 'vendor/autoload.php'; $client = new Kitchenu\Chatwork\Client('chatwork-api-token'); $response = $client->request('GET', 'me'); echo $response->mail; // mail@example.com
How to request endpoint ( POST /rooms/{room_id}/messages )
$client->request('POST', 'rooms/123456789/messages', ['body' => 'Hello']);
or
$client->postRoomMessages([ 'room_id' => '123456789', 'body' => 'Hello' ]);