Andre Genrich 5 лет назад
Родитель
Сommit
a28e297fb0
1 измененных файлов с 24 добавлено и 0 удалено
  1. 24 0
      api/Zm/Account.php

+ 24 - 0
api/Zm/Account.php

@@ -746,6 +746,30 @@ class Zm_Account
 
 		return $result;
 	}
+
+	/**
+	 * getAllCos
+	 * @return array informations
+	 */
+	function getAllCos()
+	{
+		$result = null;
+
+		try
+		{
+			$result = $this->auth->execSoapCall(
+				"GetAllCosRequest"
+			);
+
+			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['GETALLCOSRESPONSE'];
+		}
+		catch (SoapFault $exception)
+		{
+			$result = $exception;
+		}
+
+		return $result;
+	}
 }
 
 ?>