添加后台代理代码
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.flow.charge.province request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.30
|
||||
*/
|
||||
class AlibabaAliqinFcFlowChargeProvinceRequest
|
||||
{
|
||||
/**
|
||||
* 需要充值的流量
|
||||
**/
|
||||
private $grade;
|
||||
|
||||
/**
|
||||
* 唯一流水号
|
||||
**/
|
||||
private $outRechargeId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
**/
|
||||
private $phoneNum;
|
||||
|
||||
/**
|
||||
* 充值原因
|
||||
**/
|
||||
private $reason;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setGrade($grade)
|
||||
{
|
||||
$this->grade = $grade;
|
||||
$this->apiParas["grade"] = $grade;
|
||||
}
|
||||
|
||||
public function getGrade()
|
||||
{
|
||||
return $this->grade;
|
||||
}
|
||||
|
||||
public function setOutRechargeId($outRechargeId)
|
||||
{
|
||||
$this->outRechargeId = $outRechargeId;
|
||||
$this->apiParas["out_recharge_id"] = $outRechargeId;
|
||||
}
|
||||
|
||||
public function getOutRechargeId()
|
||||
{
|
||||
return $this->outRechargeId;
|
||||
}
|
||||
|
||||
public function setPhoneNum($phoneNum)
|
||||
{
|
||||
$this->phoneNum = $phoneNum;
|
||||
$this->apiParas["phone_num"] = $phoneNum;
|
||||
}
|
||||
|
||||
public function getPhoneNum()
|
||||
{
|
||||
return $this->phoneNum;
|
||||
}
|
||||
|
||||
public function setReason($reason)
|
||||
{
|
||||
$this->reason = $reason;
|
||||
$this->apiParas["reason"] = $reason;
|
||||
}
|
||||
|
||||
public function getReason()
|
||||
{
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.flow.charge.province";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->grade,"grade");
|
||||
RequestCheckUtil::checkNotNull($this->outRechargeId,"outRechargeId");
|
||||
RequestCheckUtil::checkNotNull($this->phoneNum,"phoneNum");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.flow.charge request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.30
|
||||
*/
|
||||
class AlibabaAliqinFcFlowChargeRequest
|
||||
{
|
||||
/**
|
||||
* 需要充值的流量
|
||||
**/
|
||||
private $grade;
|
||||
|
||||
/**
|
||||
* 唯一流水号
|
||||
**/
|
||||
private $outRechargeId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
**/
|
||||
private $phoneNum;
|
||||
|
||||
/**
|
||||
* 充值原因
|
||||
**/
|
||||
private $reason;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setGrade($grade)
|
||||
{
|
||||
$this->grade = $grade;
|
||||
$this->apiParas["grade"] = $grade;
|
||||
}
|
||||
|
||||
public function getGrade()
|
||||
{
|
||||
return $this->grade;
|
||||
}
|
||||
|
||||
public function setOutRechargeId($outRechargeId)
|
||||
{
|
||||
$this->outRechargeId = $outRechargeId;
|
||||
$this->apiParas["out_recharge_id"] = $outRechargeId;
|
||||
}
|
||||
|
||||
public function getOutRechargeId()
|
||||
{
|
||||
return $this->outRechargeId;
|
||||
}
|
||||
|
||||
public function setPhoneNum($phoneNum)
|
||||
{
|
||||
$this->phoneNum = $phoneNum;
|
||||
$this->apiParas["phone_num"] = $phoneNum;
|
||||
}
|
||||
|
||||
public function getPhoneNum()
|
||||
{
|
||||
return $this->phoneNum;
|
||||
}
|
||||
|
||||
public function setReason($reason)
|
||||
{
|
||||
$this->reason = $reason;
|
||||
$this->apiParas["reason"] = $reason;
|
||||
}
|
||||
|
||||
public function getReason()
|
||||
{
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.flow.charge";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->grade,"grade");
|
||||
RequestCheckUtil::checkNotNull($this->outRechargeId,"outRechargeId");
|
||||
RequestCheckUtil::checkNotNull($this->phoneNum,"phoneNum");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.flow.grade request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.30
|
||||
*/
|
||||
class AlibabaAliqinFcFlowGradeRequest
|
||||
{
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.flow.grade";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.flow.query request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.30
|
||||
*/
|
||||
class AlibabaAliqinFcFlowQueryRequest
|
||||
{
|
||||
/**
|
||||
* 唯一流水号
|
||||
**/
|
||||
private $outId;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setOutId($outId)
|
||||
{
|
||||
$this->outId = $outId;
|
||||
$this->apiParas["out_id"] = $outId;
|
||||
}
|
||||
|
||||
public function getOutId()
|
||||
{
|
||||
return $this->outId;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.flow.query";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.sms.num.query request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.01
|
||||
*/
|
||||
class AlibabaAliqinFcSmsNumQueryRequest
|
||||
{
|
||||
/**
|
||||
* 短信发送流水
|
||||
**/
|
||||
private $bizId;
|
||||
|
||||
/**
|
||||
* 分页参数,页码
|
||||
**/
|
||||
private $currentPage;
|
||||
|
||||
/**
|
||||
* 分页参数,每页数量。最大值50
|
||||
**/
|
||||
private $pageSize;
|
||||
|
||||
/**
|
||||
* 短信发送日期,支持近30天记录查询,格式yyyyMMdd
|
||||
**/
|
||||
private $queryDate;
|
||||
|
||||
/**
|
||||
* 短信接收号码
|
||||
**/
|
||||
private $recNum;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setBizId($bizId)
|
||||
{
|
||||
$this->bizId = $bizId;
|
||||
$this->apiParas["biz_id"] = $bizId;
|
||||
}
|
||||
|
||||
public function getBizId()
|
||||
{
|
||||
return $this->bizId;
|
||||
}
|
||||
|
||||
public function setCurrentPage($currentPage)
|
||||
{
|
||||
$this->currentPage = $currentPage;
|
||||
$this->apiParas["current_page"] = $currentPage;
|
||||
}
|
||||
|
||||
public function getCurrentPage()
|
||||
{
|
||||
return $this->currentPage;
|
||||
}
|
||||
|
||||
public function setPageSize($pageSize)
|
||||
{
|
||||
$this->pageSize = $pageSize;
|
||||
$this->apiParas["page_size"] = $pageSize;
|
||||
}
|
||||
|
||||
public function getPageSize()
|
||||
{
|
||||
return $this->pageSize;
|
||||
}
|
||||
|
||||
public function setQueryDate($queryDate)
|
||||
{
|
||||
$this->queryDate = $queryDate;
|
||||
$this->apiParas["query_date"] = $queryDate;
|
||||
}
|
||||
|
||||
public function getQueryDate()
|
||||
{
|
||||
return $this->queryDate;
|
||||
}
|
||||
|
||||
public function setRecNum($recNum)
|
||||
{
|
||||
$this->recNum = $recNum;
|
||||
$this->apiParas["rec_num"] = $recNum;
|
||||
}
|
||||
|
||||
public function getRecNum()
|
||||
{
|
||||
return $this->recNum;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.sms.num.query";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->currentPage,"currentPage");
|
||||
RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
|
||||
RequestCheckUtil::checkNotNull($this->queryDate,"queryDate");
|
||||
RequestCheckUtil::checkNotNull($this->recNum,"recNum");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.sms.num.send request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.05.24
|
||||
*/
|
||||
class AlibabaAliqinFcSmsNumSendRequest
|
||||
{
|
||||
/**
|
||||
* 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用
|
||||
**/
|
||||
private $extend;
|
||||
|
||||
/**
|
||||
* 短信接收号码。支持单个或多个手机号码,传入号码为11位手机号码,不能加0或+86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码。示例:18600000000,13911111111,13322222222
|
||||
**/
|
||||
private $recNum;
|
||||
|
||||
/**
|
||||
* 短信签名,传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名。如“阿里大鱼”已在短信签名管理中通过审核,则可传入”阿里大鱼“(传参时去掉引号)作为短信签名。短信效果示例:【阿里大鱼】欢迎使用阿里大鱼服务。
|
||||
**/
|
||||
private $smsFreeSignName;
|
||||
|
||||
/**
|
||||
* 短信模板变量,传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开。示例:针对模板“验证码${code},您正在进行${product}身份验证,打死不要告诉别人哦!”,传参时需传入{"code":"1234","product":"alidayu"}
|
||||
**/
|
||||
private $smsParam;
|
||||
|
||||
/**
|
||||
* 短信模板ID,传入的模板必须是在阿里大鱼“管理中心-短信模板管理”中的可用模板。示例:SMS_585014
|
||||
**/
|
||||
private $smsTemplateCode;
|
||||
|
||||
/**
|
||||
* 短信类型,传入值请填写normal
|
||||
**/
|
||||
private $smsType;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setExtend($extend)
|
||||
{
|
||||
$this->extend = $extend;
|
||||
$this->apiParas["extend"] = $extend;
|
||||
}
|
||||
|
||||
public function getExtend()
|
||||
{
|
||||
return $this->extend;
|
||||
}
|
||||
|
||||
public function setRecNum($recNum)
|
||||
{
|
||||
$this->recNum = $recNum;
|
||||
$this->apiParas["rec_num"] = $recNum;
|
||||
}
|
||||
|
||||
public function getRecNum()
|
||||
{
|
||||
return $this->recNum;
|
||||
}
|
||||
|
||||
public function setSmsFreeSignName($smsFreeSignName)
|
||||
{
|
||||
$this->smsFreeSignName = $smsFreeSignName;
|
||||
$this->apiParas["sms_free_sign_name"] = $smsFreeSignName;
|
||||
}
|
||||
|
||||
public function getSmsFreeSignName()
|
||||
{
|
||||
return $this->smsFreeSignName;
|
||||
}
|
||||
|
||||
public function setSmsParam($smsParam)
|
||||
{
|
||||
$this->smsParam = $smsParam;
|
||||
$this->apiParas["sms_param"] = $smsParam;
|
||||
}
|
||||
|
||||
public function getSmsParam()
|
||||
{
|
||||
return $this->smsParam;
|
||||
}
|
||||
|
||||
public function setSmsTemplateCode($smsTemplateCode)
|
||||
{
|
||||
$this->smsTemplateCode = $smsTemplateCode;
|
||||
$this->apiParas["sms_template_code"] = $smsTemplateCode;
|
||||
}
|
||||
|
||||
public function getSmsTemplateCode()
|
||||
{
|
||||
return $this->smsTemplateCode;
|
||||
}
|
||||
|
||||
public function setSmsType($smsType)
|
||||
{
|
||||
$this->smsType = $smsType;
|
||||
$this->apiParas["sms_type"] = $smsType;
|
||||
}
|
||||
|
||||
public function getSmsType()
|
||||
{
|
||||
return $this->smsType;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.sms.num.send";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->recNum,"recNum");
|
||||
RequestCheckUtil::checkNotNull($this->smsFreeSignName,"smsFreeSignName");
|
||||
RequestCheckUtil::checkNotNull($this->smsTemplateCode,"smsTemplateCode");
|
||||
RequestCheckUtil::checkNotNull($this->smsType,"smsType");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.tts.num.singlecall request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.05.24
|
||||
*/
|
||||
class AlibabaAliqinFcTtsNumSinglecallRequest
|
||||
{
|
||||
/**
|
||||
* 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
|
||||
**/
|
||||
private $calledNum;
|
||||
|
||||
/**
|
||||
* 被叫号显,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码
|
||||
**/
|
||||
private $calledShowNum;
|
||||
|
||||
/**
|
||||
* 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用
|
||||
**/
|
||||
private $extend;
|
||||
|
||||
/**
|
||||
* TTS模板ID,传入的模板必须是在阿里大鱼“管理中心-语音TTS模板管理”中的可用模板
|
||||
**/
|
||||
private $ttsCode;
|
||||
|
||||
/**
|
||||
* 文本转语音(TTS)模板变量,传参规则{"key":"value"},key的名字须和TTS模板中的变量名一致,多个变量之间以逗号隔开,示例:{"name":"xiaoming","code":"1234"}
|
||||
**/
|
||||
private $ttsParam;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setCalledNum($calledNum)
|
||||
{
|
||||
$this->calledNum = $calledNum;
|
||||
$this->apiParas["called_num"] = $calledNum;
|
||||
}
|
||||
|
||||
public function getCalledNum()
|
||||
{
|
||||
return $this->calledNum;
|
||||
}
|
||||
|
||||
public function setCalledShowNum($calledShowNum)
|
||||
{
|
||||
$this->calledShowNum = $calledShowNum;
|
||||
$this->apiParas["called_show_num"] = $calledShowNum;
|
||||
}
|
||||
|
||||
public function getCalledShowNum()
|
||||
{
|
||||
return $this->calledShowNum;
|
||||
}
|
||||
|
||||
public function setExtend($extend)
|
||||
{
|
||||
$this->extend = $extend;
|
||||
$this->apiParas["extend"] = $extend;
|
||||
}
|
||||
|
||||
public function getExtend()
|
||||
{
|
||||
return $this->extend;
|
||||
}
|
||||
|
||||
public function setTtsCode($ttsCode)
|
||||
{
|
||||
$this->ttsCode = $ttsCode;
|
||||
$this->apiParas["tts_code"] = $ttsCode;
|
||||
}
|
||||
|
||||
public function getTtsCode()
|
||||
{
|
||||
return $this->ttsCode;
|
||||
}
|
||||
|
||||
public function setTtsParam($ttsParam)
|
||||
{
|
||||
$this->ttsParam = $ttsParam;
|
||||
$this->apiParas["tts_param"] = $ttsParam;
|
||||
}
|
||||
|
||||
public function getTtsParam()
|
||||
{
|
||||
return $this->ttsParam;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.tts.num.singlecall";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->calledNum,"calledNum");
|
||||
RequestCheckUtil::checkNotNull($this->calledShowNum,"calledShowNum");
|
||||
RequestCheckUtil::checkNotNull($this->ttsCode,"ttsCode");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.voice.num.doublecall request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.06
|
||||
*/
|
||||
class AlibabaAliqinFcVoiceNumDoublecallRequest
|
||||
{
|
||||
/**
|
||||
* 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
|
||||
**/
|
||||
private $calledNum;
|
||||
|
||||
/**
|
||||
* 被叫号码侧的号码显示,传入的显示号码可以是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。
|
||||
**/
|
||||
private $calledShowNum;
|
||||
|
||||
/**
|
||||
* 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
|
||||
**/
|
||||
private $callerNum;
|
||||
|
||||
/**
|
||||
* 主叫号码侧的号码显示,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500
|
||||
**/
|
||||
private $callerShowNum;
|
||||
|
||||
/**
|
||||
* 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用
|
||||
**/
|
||||
private $extend;
|
||||
|
||||
/**
|
||||
* 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。
|
||||
**/
|
||||
private $sessionTimeOut;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setCalledNum($calledNum)
|
||||
{
|
||||
$this->calledNum = $calledNum;
|
||||
$this->apiParas["called_num"] = $calledNum;
|
||||
}
|
||||
|
||||
public function getCalledNum()
|
||||
{
|
||||
return $this->calledNum;
|
||||
}
|
||||
|
||||
public function setCalledShowNum($calledShowNum)
|
||||
{
|
||||
$this->calledShowNum = $calledShowNum;
|
||||
$this->apiParas["called_show_num"] = $calledShowNum;
|
||||
}
|
||||
|
||||
public function getCalledShowNum()
|
||||
{
|
||||
return $this->calledShowNum;
|
||||
}
|
||||
|
||||
public function setCallerNum($callerNum)
|
||||
{
|
||||
$this->callerNum = $callerNum;
|
||||
$this->apiParas["caller_num"] = $callerNum;
|
||||
}
|
||||
|
||||
public function getCallerNum()
|
||||
{
|
||||
return $this->callerNum;
|
||||
}
|
||||
|
||||
public function setCallerShowNum($callerShowNum)
|
||||
{
|
||||
$this->callerShowNum = $callerShowNum;
|
||||
$this->apiParas["caller_show_num"] = $callerShowNum;
|
||||
}
|
||||
|
||||
public function getCallerShowNum()
|
||||
{
|
||||
return $this->callerShowNum;
|
||||
}
|
||||
|
||||
public function setExtend($extend)
|
||||
{
|
||||
$this->extend = $extend;
|
||||
$this->apiParas["extend"] = $extend;
|
||||
}
|
||||
|
||||
public function getExtend()
|
||||
{
|
||||
return $this->extend;
|
||||
}
|
||||
|
||||
public function setSessionTimeOut($sessionTimeOut)
|
||||
{
|
||||
$this->sessionTimeOut = $sessionTimeOut;
|
||||
$this->apiParas["session_time_out"] = $sessionTimeOut;
|
||||
}
|
||||
|
||||
public function getSessionTimeOut()
|
||||
{
|
||||
return $this->sessionTimeOut;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.voice.num.doublecall";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->calledNum,"calledNum");
|
||||
RequestCheckUtil::checkNotNull($this->calledShowNum,"calledShowNum");
|
||||
RequestCheckUtil::checkNotNull($this->callerNum,"callerNum");
|
||||
RequestCheckUtil::checkNotNull($this->callerShowNum,"callerShowNum");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: alibaba.aliqin.fc.voice.num.singlecall request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.01
|
||||
*/
|
||||
class AlibabaAliqinFcVoiceNumSinglecallRequest
|
||||
{
|
||||
/**
|
||||
* 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
|
||||
**/
|
||||
private $calledNum;
|
||||
|
||||
/**
|
||||
* 被叫号显,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请通过的号码
|
||||
**/
|
||||
private $calledShowNum;
|
||||
|
||||
/**
|
||||
* 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用
|
||||
**/
|
||||
private $extend;
|
||||
|
||||
/**
|
||||
* 语音文件ID,传入的语音文件必须是在阿里大鱼“管理中心-语音文件管理”中的可用语音文件
|
||||
**/
|
||||
private $voiceCode;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setCalledNum($calledNum)
|
||||
{
|
||||
$this->calledNum = $calledNum;
|
||||
$this->apiParas["called_num"] = $calledNum;
|
||||
}
|
||||
|
||||
public function getCalledNum()
|
||||
{
|
||||
return $this->calledNum;
|
||||
}
|
||||
|
||||
public function setCalledShowNum($calledShowNum)
|
||||
{
|
||||
$this->calledShowNum = $calledShowNum;
|
||||
$this->apiParas["called_show_num"] = $calledShowNum;
|
||||
}
|
||||
|
||||
public function getCalledShowNum()
|
||||
{
|
||||
return $this->calledShowNum;
|
||||
}
|
||||
|
||||
public function setExtend($extend)
|
||||
{
|
||||
$this->extend = $extend;
|
||||
$this->apiParas["extend"] = $extend;
|
||||
}
|
||||
|
||||
public function getExtend()
|
||||
{
|
||||
return $this->extend;
|
||||
}
|
||||
|
||||
public function setVoiceCode($voiceCode)
|
||||
{
|
||||
$this->voiceCode = $voiceCode;
|
||||
$this->apiParas["voice_code"] = $voiceCode;
|
||||
}
|
||||
|
||||
public function getVoiceCode()
|
||||
{
|
||||
return $this->voiceCode;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "alibaba.aliqin.fc.voice.num.singlecall";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->calledNum,"calledNum");
|
||||
RequestCheckUtil::checkNotNull($this->calledShowNum,"calledShowNum");
|
||||
RequestCheckUtil::checkNotNull($this->voiceCode,"voiceCode");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.appip.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2014.11.26
|
||||
*/
|
||||
class AppipGetRequest
|
||||
{
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.appip.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.areas.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.04.13
|
||||
*/
|
||||
class AreasGetRequest
|
||||
{
|
||||
/**
|
||||
* 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip.
|
||||
**/
|
||||
private $fields;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setFields($fields)
|
||||
{
|
||||
$this->fields = $fields;
|
||||
$this->apiParas["fields"] = $fields;
|
||||
}
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
return $this->fields;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.areas.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->fields,"fields");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.httpdns.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.24
|
||||
*/
|
||||
class HttpdnsGetRequest
|
||||
{
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.httpdns.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.kfc.keyword.search request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.19
|
||||
*/
|
||||
class KfcKeywordSearchRequest
|
||||
{
|
||||
/**
|
||||
* 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。
|
||||
|
||||
这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。
|
||||
|
||||
|
||||
通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。
|
||||
**/
|
||||
private $apply;
|
||||
|
||||
/**
|
||||
* 需要过滤的文本信息
|
||||
**/
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* 发布信息的淘宝会员名,可以不传
|
||||
**/
|
||||
private $nick;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setApply($apply)
|
||||
{
|
||||
$this->apply = $apply;
|
||||
$this->apiParas["apply"] = $apply;
|
||||
}
|
||||
|
||||
public function getApply()
|
||||
{
|
||||
return $this->apply;
|
||||
}
|
||||
|
||||
public function setContent($content)
|
||||
{
|
||||
$this->content = $content;
|
||||
$this->apiParas["content"] = $content;
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function setNick($nick)
|
||||
{
|
||||
$this->nick = $nick;
|
||||
$this->apiParas["nick"] = $nick;
|
||||
}
|
||||
|
||||
public function getNick()
|
||||
{
|
||||
return $this->nick;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.kfc.keyword.search";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->content,"content");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.time.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.03.28
|
||||
*/
|
||||
class TimeGetRequest
|
||||
{
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.time.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.top.auth.token.create request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.04.15
|
||||
*/
|
||||
class TopAuthTokenCreateRequest
|
||||
{
|
||||
/**
|
||||
* 授权code,grantType==authorization_code 时需要
|
||||
**/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* 与生成code的uuid配对
|
||||
**/
|
||||
private $uuid;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
$this->apiParas["code"] = $code;
|
||||
}
|
||||
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setUuid($uuid)
|
||||
{
|
||||
$this->uuid = $uuid;
|
||||
$this->apiParas["uuid"] = $uuid;
|
||||
}
|
||||
|
||||
public function getUuid()
|
||||
{
|
||||
return $this->uuid;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.top.auth.token.create";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->code,"code");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.top.auth.token.refresh request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2015.08.20
|
||||
*/
|
||||
class TopAuthTokenRefreshRequest
|
||||
{
|
||||
/**
|
||||
* grantType==refresh_token 时需要
|
||||
**/
|
||||
private $refreshToken;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setRefreshToken($refreshToken)
|
||||
{
|
||||
$this->refreshToken = $refreshToken;
|
||||
$this->apiParas["refresh_token"] = $refreshToken;
|
||||
}
|
||||
|
||||
public function getRefreshToken()
|
||||
{
|
||||
return $this->refreshToken;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.top.auth.token.refresh";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->refreshToken,"refreshToken");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.top.ipout.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2015.09.07
|
||||
*/
|
||||
class TopIpoutGetRequest
|
||||
{
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.top.ipout.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.top.secret.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2016.04.06
|
||||
*/
|
||||
class TopSecretGetRequest
|
||||
{
|
||||
/**
|
||||
* 伪随机数
|
||||
**/
|
||||
private $randomNum;
|
||||
|
||||
/**
|
||||
* 秘钥版本号
|
||||
**/
|
||||
private $secretVersion;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setRandomNum($randomNum)
|
||||
{
|
||||
$this->randomNum = $randomNum;
|
||||
$this->apiParas["random_num"] = $randomNum;
|
||||
}
|
||||
|
||||
public function getRandomNum()
|
||||
{
|
||||
return $this->randomNum;
|
||||
}
|
||||
|
||||
public function setSecretVersion($secretVersion)
|
||||
{
|
||||
$this->secretVersion = $secretVersion;
|
||||
$this->apiParas["secret_version"] = $secretVersion;
|
||||
}
|
||||
|
||||
public function getSecretVersion()
|
||||
{
|
||||
return $this->secretVersion;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.top.secret.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->randomNum,"randomNum");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.topats.result.get request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2014.04.11
|
||||
*/
|
||||
class TopatsResultGetRequest
|
||||
{
|
||||
/**
|
||||
* 任务id号,创建任务时返回的task_id
|
||||
**/
|
||||
private $taskId;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setTaskId($taskId)
|
||||
{
|
||||
$this->taskId = $taskId;
|
||||
$this->apiParas["task_id"] = $taskId;
|
||||
}
|
||||
|
||||
public function getTaskId()
|
||||
{
|
||||
return $this->taskId;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.topats.result.get";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->taskId,"taskId");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* TOP API: taobao.topats.task.delete request
|
||||
*
|
||||
* @author auto create
|
||||
* @since 1.0, 2014.03.27
|
||||
*/
|
||||
class TopatsTaskDeleteRequest
|
||||
{
|
||||
/**
|
||||
* 需要取消的任务ID
|
||||
**/
|
||||
private $taskId;
|
||||
|
||||
private $apiParas = array();
|
||||
|
||||
public function setTaskId($taskId)
|
||||
{
|
||||
$this->taskId = $taskId;
|
||||
$this->apiParas["task_id"] = $taskId;
|
||||
}
|
||||
|
||||
public function getTaskId()
|
||||
{
|
||||
return $this->taskId;
|
||||
}
|
||||
|
||||
public function getApiMethodName()
|
||||
{
|
||||
return "taobao.topats.task.delete";
|
||||
}
|
||||
|
||||
public function getApiParas()
|
||||
{
|
||||
return $this->apiParas;
|
||||
}
|
||||
|
||||
public function check()
|
||||
{
|
||||
|
||||
RequestCheckUtil::checkNotNull($this->taskId,"taskId");
|
||||
}
|
||||
|
||||
public function putOtherTextParam($key, $value) {
|
||||
$this->apiParas[$key] = $value;
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user