ApprovalTest.php 614 B

1234567891011121314151617181920212223242526
  1. <?php /*
  2. * Copyright (C) 2017 All rights reserved.
  3. *
  4. * @File ApprovalTest.php
  5. * @Brief
  6. * @Author abelzhu, abelzhu@tencent.com
  7. * @Version 1.0
  8. * @Date 2017-12-27
  9. *
  10. */
  11. include_once("../src/CorpAPI.class.php");
  12. include_once("../src/ServiceCorpAPI.class.php");
  13. include_once("../src/ServiceProviderAPI.class.php");
  14. //
  15. $config = require('./config.php');
  16. //
  17. $api = new CorpAPI($config['CORP_ID'], $config['APPROVAL_APP_SECRET']);
  18. try {
  19. $ApprovalDataList = $api->ApprovalDataGet(1513649733, 1513770113);
  20. var_dump($ApprovalDataList);
  21. } catch (Exception $e) {
  22. echo $e->getMessage() . "\n";
  23. }