【调度系统】广东民航医疗快线调度系统源代码
hzj
5 小时以前 1503b9d7ed1d71b98bd5715c23d236ef3c019ead
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
<?php
 
include_once("../src/CorpAPI.class.php");
include_once("../src/ServiceCorpAPI.class.php");
include_once("../src/ServiceProviderAPI.class.php");
 
/*
 * Copyright (C) 2017 All rights reserved.
 *   
 * @File MediaTest.php
 * @Brief 
 * @Author abelzhu, abelzhu@tencent.com
 * @Version 1.0
 * @Date 2017-12-26
 *
 */
 
$config = require('./config.php');
 
$api = new CorpAPI($config['CORP_ID'], $config['APP_SECRET']);
try {
    //
    $mediaId = $api->MediaUpload("TestConfig.php", "file");
    echo $mediaId."\n";
 
    //
    $data = $api->MediaGet($mediaId);
    var_dump($data);
} catch (Exception $e) { 
    echo $e->getMessage() . "\n";
}