jiemo / leanchat
2.1
2017-01-04 08:20 UTC
Requires
- guzzlehttp/guzzle: ^6.2
This package is not auto-updated.
Last update: 2024-10-26 20:20:57 UTC
README
<?php use Jiemo\LeanChat\Client; use Jiemo\LeanChat\Message\Attachment; use Jiemo\LeanChat\Message\Body; $body = new Body(); $body->title = '@所有人 测试' ; $body->channel = '#test'; $body->displayUserName = 'test'; $body->displayUserAvatarUrl = 'http://example.com/t.png'; $attachment = new Attachment(); $attachment->color = Attachment::COLOR_WARNING; $attachment->title = 'test'; $attachment->description = 'tset'; $body->addAttachment($attachment); $client = new Client('http://xxx'); $client->send($body);
php bin/leanchat.php