$c = new aopclient;
$c->gatewayurl = "https://openapi.alipay.com/gateway.do";
$c->appid = "app_id";
$c->rsaprivatekey = '请填写开发者私钥去头去尾去回车,一行字符串' ;
$c->format = "json";
$c->signtype= "rsa2";
$c->alipayrsapublickey = '请填写支付宝公钥,一行字符串';
//实例化具体api对应的request类,类名称和接口名称对应,当前调用接口名称:alipay.open.public.template.message.industry.modify
$request = new alipayopenpublictemplatemessageindustrymodifyrequest();
//sdk已经封装掉了公共参数,这里只需要传入业务参数
//此次只是参数展示,未进行字符串转义,实际情况下请转义
$request->setbizcontent = "{" .
" \"primary_industry_name\":\"it科技/it软件与服务\"," .
" \"primary_industry_code\":\"10001/20102\"," .
" \"secondary_industry_code\":\"10001/20102\"," .
" \"secondary_industry_name\":\"it科技/it软件与服务\"" .
" }";
$response= $c->execute($request);