<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$accountid = '1';//子账号ID
$templateid = '1';//修改的模板ID
$name = '用户您好';//模板标识
$content = '用户您好。【极速数据】';//模板内容
$ismarket = '0';//是否为营销短信
$url = "https://api.jisuapi.com/sms/edittemplate?appkey=$appkey&accountid=$accountid&templateid=$templateid&name=$name&content=$content&ismarket=$ismarket";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['accountid'].' '.$result['name'].' '.$result['content'].' '.$result['templateid'].' '.$result['status'].' '.$result['ismarket'].'
';