Skip to content

tuozhongedu/leanchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

灵信api客户端

<?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

About

零信phpclient

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages