优惠券订单及其他脚本

OapiTest.php 410B

123456789101112
  1. <?php
  2. include "TopSdk.php";
  3. date_default_timezone_set('Asia/Shanghai');
  4. $c = new DingTalkClient(DingTalkConstant::$CALL_TYPE_OAPI, DingTalkConstant::$METHOD_GET , DingTalkConstant::$FORMAT_JSON);
  5. $req = new OapiGettokenRequest;
  6. $req->setCorpid("dingc95d22c053c528xx");
  7. $req->setCorpsecret("y2bvq4CbSV0TupI0bTg");
  8. $resp=$c->execute($req, "accessToken","https://oapi.dingtalk.com/gettoken");
  9. var_dump($resp)
  10. ?>