@Override
    protected IndirectClient getClient() {
        val wechatClient = new WechatClient();
        final String apiKey;
        final String apiSecret;
        final String callbackUrl;
        final WechatClient.WechatScope scope;
        if (QRCODE) {
//          Only for WeChat QRCode login.
            apiKey = "wx87e3d5b7290aa255";
            apiSecret = "3f70550b81198131429b408cc1c8b091";
            callbackUrl = "http://www.yomoer.cn/ThirdpartyLogin/afterWeixinLogin";
            scope = WechatClient.WechatScope.SNSAPI_LOGIN;
        } else {
//            WeChat embedded browser, call native login.
            apiKey = "wxade4323a74dcb897";
            apiSecret = "43854fe4325282609ace1da9df0cbf32";
            callbackUrl = "http://192.168.10.20/callback";
            scope = WechatClient.WechatScope.SNSAPI_USERINFO;
        }

        wechatClient.setKey(apiKey);
        wechatClient.setSecret(apiSecret);
        wechatClient.setCallbackUrl(callbackUrl);
        wechatClient.addScope(scope);
        return wechatClient;
    }
Run manually a test for the {@link WechatClient}.

@author zhangzhenli
@since 3.1.0
pac4j-oauth/src/test/java/org/pac4j/oauth/run/RunWechatClient.java