andre 5 роки тому
батько
коміт
fc3f640552
1 змінених файлів з 0 додано та 42 видалено
  1. 0 42
      api/Zm/Account.php

+ 0 - 42
api/Zm/Account.php

@@ -754,48 +754,6 @@ class Zm_Account
 
 		return $result;
 	}
-	/**
-	 * getAccountToken
-	 * @param string $idOrNameAccount account id or account name
-	 * @param string $preauthKey preauth key
-	 * @param string $expire lifetime of token
-	 * @return string authToken
-	 */
-
-	function getAccountToken($idOrNameAccount, $preauthKey, $expire, $type="auto")
-	{
-		if($type == "auto")
-			$realType = getAccountType($idOrNameAccount);
-		else
-			$realType = $type;
-
-		if($realType == "name")
-			$accountId = $this->getAccountId($idOrNameAccount);
-		else
-			$accountId = $idOrNameAccount;
-
-		$result = null;
-
-		$params = array(
-			new SoapParam($accountId, "id"),
-		);
-
-		try
-		{
-			$result = $this->auth->execSoapCall(
-				"AuthRequest",
-				$params
-			);
-
-//			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['AUTHTOKEN'];
-		}
-		catch (SoapFault $exception)
-		{
-			$result = $exception;
-		}
-
-		return $result;
-	}
 
 	/**
 	 * getAccountCos