Chatwork API client.
unofficial, but glittering chatwork api client., (*1)
alpha development, (*3)
composer.json, (*4)
{ "require": { "chobie/chatwork-api-client": "dev-master" } }
Example, (*5)
<?php require __DIR__ . DIRECTORY_SEPARATOR . join(DIRECTORY_SEPARATOR, array("vendor", "autoload.php")); $room_id = "123456768"; use Chatwork\APIFactory; $client = APIFactory::createInstance(array( "token" => "**********", )); $client->sendMessage($room_id, "Hello World");
php5.3 higher, (*6)
openssl extension, (*7)
curl extension, (*8)
NOTE for self building users: chatwork api requires SSL connection. this mean you must compile PHP
with --with-openssl
option. please check this article http://us1.php.net/manual/ja/openssl.installation.php, (*9)
you can check with php --ri openssl
command., (*10)
php --ri openssl openssl OpenSSL support => enabled OpenSSL Library Version => OpenSSL 0.9.8o 01 Jun 2010 OpenSSL HeaderAuthentication Version => OpenSSL 0.9.8o 01 Jun 2010
MIT LICENSE, (*11)