EasyWeChat制作公众号推送

 $appid,
            'secret' => $secret,
            'response_type' => 'array',

        ];

        $app = new Application($config);


        $app->notice->send([
            'touser' => 'oFFxE1BofS*****',               //用户openid
            'template_id' => '1KwPvazjT0_8*****6M5X8',    //模拟id
            'url' => 'https://easywechat.org',
            'data' => [
                'key1' => 'VALUE',
                'key2' => 'VALUE2'
            ],
        ]);
    }

 

你可能感兴趣的:(EasyWeChat制作公众号推送)