CheckinTest.php 757 B

123456789101112131415161718192021222324252627282930
  1. <?php /*
  2. * Copyright (C) 2017 All rights reserved.
  3. *
  4. * @File CheckinTest.php
  5. * @Brief
  6. * @Author abelzhu, abelzhu@tencent.com
  7. * @Version 1.0
  8. * @Date 2017-12-26
  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['CHECKIN_APP_SECRET']);
  18. try {
  19. //
  20. $checkinOption = $api->CheckinOptionGet(1513760113, array("ZhuShengBen"));
  21. var_dump($checkinOption);
  22. //
  23. $checkinDataList = $api->CheckinDataGet(1, 1513649733, 1513770113, array("ZhuShengBen"));
  24. var_dump($checkinDataList);
  25. } catch (Exception $e) {
  26. echo $e->getMessage() . "\n";
  27. }