public function recharge($data = array()) { if (!array_key_exists('mobile', $data)) { return new Result(null, $data, null, $error = 'mobile 为空'); } $data['apikey'] = $this->apikey; return HttpUtil::PostCURL($this->yunpian_config['URI_RECHARGE_FLOW'], $data); }
public function del($data = array()) { if (!array_key_exists('tpl_id', $data)) { return new Result(null, $data, null, $error = 'tpl_id 为空'); } $data['apikey'] = $this->apikey; return HttpUtil::PostCURL($this->yunpian_config['URI_DEL_TEMPLATE'], $data); }
public function tpl_send($data = array()) { if (!array_key_exists('mobile', $data)) { return new Result(null, $data, null, 'mobile 为空'); } if (!array_key_exists('tpl_id', $data)) { return new Result(null, $data, null, 'tpl_id 为空'); } if (!array_key_exists('tpl_value', $data)) { return new Result(null, $data, null, 'tpl_value 为空'); } $data['apikey'] = $this->apikey; return HttpUtil::PostCURL($this->yunpian_config['URI_SEND_TPL_SMS'], $data); }
public function pull_status($data = array()) { $data['apikey'] = $this->apikey; return HttpUtil::PostCURL($this->yunpian_config['URI_PULL_VOICE_STATUS'], $data); }
public function set($data = array()) { $data['apikey'] = $this->apikey; return HttpUtil::PostCURL($this->yunpian_config['URI_SET_USER_INFO'], $data); }