sdk / signaller
There is no license information available for the latest version (dev-master) of this package.
dev-master
2018-09-12 08:43 UTC
Requires
- php: >=7.1
- fastd/swoole: ^2.3
- fastd/utils: ^0.2.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2025-03-29 00:40:45 UTC
README
require __DIR__ . '/vendor/autoload.php';
use Sdk\Signaller\Sentinel;
use Sdk\Signaller\Service;
$sdk = new Service();
$sdk->asyncRequest('demo', 'demo', [], [
'headers' => [
'accept_language' => 'zh-TW'
],
'body' => '以后'
]);
$sdk->asyncRequest('demo', 'demo', ['我们以后'], [
'headers' => [
'accept_language' => 'zh-TW'
],
]);
$responses = $sdk->select();
foreach ($responses as $response) {
var_dump($response->isSuccessful());
var_dump($response->toArray());
}