Esempio n. 1
0
 public function action_send_template_message()
 {
     $param = array('touser' => 'oUcKEtwIP8_0VlA2VsKd7dATujGQ', 'template_id' => 'FfJM1NlKYlfy4Fhb1wcDc_li5lcDMGVHhaRF-y2ZmbE', 'data' => array('aaa' => array('value' => 'aaaaa', 'color' => '#00FF00'), 'bbb' => array('value' => 'bbbbb', 'color' => '#FF0000')));
     $wx = new Weixin();
     $ret = $wx->send_template_message($param);
     var_dump($ret);
 }