unofficial, but glittering chatwork api client.
alpha development
composer.json
{
"require": {
"chobie/chatwork-api-client": "dev-master"
}
}
Example
<?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
-
openssl extension
-
curl extension
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
you can check with php --ri openssl
command.
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
- (optional) libuv extension
MIT LICENSE