You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
299 B
23 lines
299 B
<?php
|
|
|
|
$app = require __DIR__ . '/app.php';
|
|
|
|
/** @var \WeWork\Api\Agent $agent */
|
|
$agent = $app->get('agent');
|
|
|
|
try {
|
|
$agent->get();
|
|
} catch (Exception $e) {
|
|
}
|
|
|
|
try {
|
|
$agent->set([
|
|
'close' => 0
|
|
]);
|
|
} catch (Exception $e) {
|
|
}
|
|
|
|
try {
|
|
$agent->list();
|
|
} catch (Exception $e) {
|
|
}
|
|
|