Example #1
0
<?php

require './config.php';
use Thenbsp\Wechat\Wechat;
/**
 * 获取微信服务器 IP
 */
$o = new Wechat(APPID, APPSECRET);
try {
    $ip = $o->getServerIp();
} catch (AccessTokenException $e) {
    exit($e->getMessage());
}
var_dump($ip);