Blame view

addons/antis/library/wework/examples/agent.php 322 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?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) {

  }