Example #1
0
<?php

require_once "config.php";
require_once "wxp_funs.php";
//
$ret = weixin_create_menu(get_access_token(CFG_APPID, CFG_SECRET), dirname(__FILE__) . "/wxp_menu.json");
if ($ret) {
    echo $ret;
}
Example #2
0
<?php

require_once "config.php";
require_once "db_weixin_funs.php";
//
$ret = weixin_create_menu(db_get_token_ticket(CFG_APPID, CFG_SECRET)["token"], dirname(__FILE__) . "/wxp_menu.json");
if ($ret) {
    echo $ret;
}