【调度系统】广东民航医疗快线调度系统源代码
克樊道人
2024-12-02 61ce8cc6883e5f94e6470141df3484167caf31ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php /*
 * Copyright (C) 2017 All rights reserved.
 *   
 * @File AgentTest.php
 * @Brief 
 * @Author abelzhu, abelzhu@tencent.com
 * @Version 1.0
 * @Date 2017-12-26
 *
 */
 
include_once("../src/CorpAPI.class.php");
include_once("../src/ServiceCorpAPI.class.php");
include_once("../src/ServiceProviderAPI.class.php");
 
$config = require('./config.php');
 
//
$api = new CorpAPI($config['CORP_ID'], $config['APP_SECRET']);
 
// ------------------------- 应用管理 --------------------------------------
try {
    //
    $agent = new Agent();
    {
        $agent->agentid = $config['APP_ID'];
        $agent->description = "I'm description";
    }
    $api->AgentSet($agent);
 
    //
    $agent = $api->AgentGet($config['APP_ID']);
    var_dump($agent);
 
    //
    $agentList = $api->AgentGetList();
    var_dump($agentList);
 
} catch (Exception $e) { 
    echo $e->getMessage() . "\n";
}