PHP code example of hanson / wechat-oa
1. Go to this page and download the library: Download hanson/wechat-oa library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hanson / wechat-oa example snippets
//或者可以先把token存储起来减少登录时所耗费的时间
$token = $wechat->getToken
$wechat->sendMessage('hello', 'openid', $wechat->getToken());