PHP code example of kitchenu / chatwork-php

1. Go to this page and download the library: Download kitchenu/chatwork-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kitchenu / chatwork-php example snippets




nt = new Kitchenu\Chatwork\Client('chatwork-api-token');

$response = $client->request('GET', 'me');

echo $response->mail;
// [email protected]

$client->request('POST', 'rooms/123456789/messages', ['body' => 'Hello']);

$client->postRoomMessages([
    'room_id' => '123456789',
    'body' => 'Hello'
]);
bash
$ composer