当前位置 : 主页 > 网络编程 > PHP >

ApiAppliction1-2

来源:互联网 收集:自由互联 发布时间:2021-06-28
gistfile1.txt setPhoneNumbers($phoneNumbers);$request-setSignName($signName);$request-setTemplateCode($templateCode);if ($templateParam) {$request-setTemplateParam(json_encode($templateParam));}if ($outId) {$request-setOutId($outId);}if ($s
gistfile1.txt
 setPhoneNumbers($phoneNumbers);
		$request->setSignName($signName);
		$request->setTemplateCode($templateCode);
		if ($templateParam) {
			$request->setTemplateParam(json_encode($templateParam));
		}
		if ($outId) {
			$request->setOutId($outId);
		}
		if ($smsUpExtendCode) {
			$request->setSmsUpExtendCode($smsUpExtendCode);
		}
		$acsResponse = static::getAcsClient()->getAcsResponse($request);
		return $acsResponse;

	}

	public function queryDetails($phoneNumbers, $sendDate, $pageSize = 10, $currentPage = 1, $bizId = null)
	{
		$request = new QuerySendDetailsRequest();
		$request->setPhoneNumber($phoneNumbers);
		$request->setBizId($bizId);
		$request->setSendDate($sendDate);
		$request->setPageSize($pageSize);
		$request->setCurrentPage($currentPage);
		$acsResponse = static::getAcsClient()->getAcsResponse($request);
		return $acsResponse;
	}
}
网友评论