企业微信第三方服务商

实例化

  1. <?php
  2. use EasyWeChat\Factory;
  3. $config = [
  4. 'corp_id' => '服务商的corpid',
  5. 'secret' => '服务商的secret,在服务商管理后台可见',
  6. 'suite_id' => '以ww或wx开头应用id',
  7. 'suite_secret' => '应用secret',
  8. 'token' => '应用的Token',
  9. 'aes_key' => '应用的EncodingAESKey',
  10. 'reg_template_id' => '注册定制化模板ID',
  11. 'redirect_uri_install' => '安装应用的回调url(可选)',
  12. 'redirect_uri_single' => '单点登录回调url (可选)',
  13. 'redirect_uri_oauth' => '网页授权第三方回调url (可选)',
  14. ];
  15. $app = Factory::openWork($config);