|
@@ 294-307 (lines=14) @@
|
| 291 |
|
* @return mixed|string |
| 292 |
|
* @links http://www.ucpaas.com/page/doc/doc_rest2-5.jsp |
| 293 |
|
*/ |
| 294 |
|
public function getClientInfo($appId, $clientNumber, $type = 'json') |
| 295 |
|
{ |
| 296 |
|
if ($type === 'json') { |
| 297 |
|
$type = 'json'; |
| 298 |
|
} elseif ($type === 'xml') { |
| 299 |
|
$type = 'xml'; |
| 300 |
|
} else { |
| 301 |
|
throw new Exception('只能json或xml,默认为json'); |
| 302 |
|
} |
| 303 |
|
$url = self::BaseUrl . self::SoftVersion . '/Accounts/' . $this->accountSid . '/Clients?sig=' . $this->getSigParameter() . '&clientNumber=' . $clientNumber . '&appId=' . $appId; |
| 304 |
|
$data = $this->getResult($url, null, $type, 'get'); |
| 305 |
|
|
| 306 |
|
return $data; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
/** |
| 310 |
|
* @param $appId |
|
@@ 319-332 (lines=14) @@
|
| 316 |
|
* @return mixed|string |
| 317 |
|
* @links http://www.ucpaas.com/page/doc/doc_rest2-9.jsp |
| 318 |
|
*/ |
| 319 |
|
public function getClientInfoByMobile($appId, $mobile, $type = 'json') |
| 320 |
|
{ |
| 321 |
|
if ($type === 'json') { |
| 322 |
|
$type = 'json'; |
| 323 |
|
} elseif ($type === 'xml') { |
| 324 |
|
$type = 'xml'; |
| 325 |
|
} else { |
| 326 |
|
throw new Exception('只能json或xml,默认为json'); |
| 327 |
|
} |
| 328 |
|
$url = self::BaseUrl . self::SoftVersion . '/Accounts/' . $this->accountSid . '/ClientsByMobile?sig=' . $this->getSigParameter() . '&mobile=' . $mobile . '&appId=' . $appId; |
| 329 |
|
$data = $this->getResult($url, null, $type, 'get'); |
| 330 |
|
|
| 331 |
|
return $data; |
| 332 |
|
} |
| 333 |
|
|
| 334 |
|
/** |
| 335 |
|
* @param $appId |