Пример #1
0
 public function getAlipayMobilePublicMessagePushRequest($bizcontent)
 {
     $c = new AopClient();
     $c->appId = self::appId;
     $c->rsaPrivateKeyFilePath = dirname(__FILE__) . self::rsaPrivateKeyFilePath;
     $c->format = 'json';
     $req = new AlipayMobilePublicMessagePushRequest();
     $req->setBizContent($bizcontent);
     $resp = $c->execute($req);
     return $resp;
 }
Пример #2
0
 /**
  * 老版本的pushMsg接口,不推荐使用
  * 
  * @param unknown $biz_content        	
  */
 public function pushMsgRequest($biz_content)
 {
     $request = new AlipayMobilePublicMessagePushRequest();
     $request->setBizContent($biz_content);
     return aopclient_request_execute($request);
 }