Browse Source

debug authtoken call

andre 5 years ago
parent
commit
493ff74201
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/Zm/Account.php

+ 2 - 2
api/Zm/Account.php

@@ -778,7 +778,7 @@ class Zm_Account
 
 
 		$params = array(
 		$params = array(
 			new SoapParam($accountId, "id"),
 			new SoapParam($accountId, "id"),
-			new SoapVar('<preauth timestamp="' . time() . ' expires="' . $expire . '">' . $preauthKey . '</preauth>', XSD_ANYXML),
+			new SoapVar('<ns1:preauth timestamp="' . time() . ' expires="' . $expire . '">' . $preauthKey . '</ns1:preauth>', XSD_ANYXML),
 		);
 		);
 
 
 		try
 		try
@@ -788,7 +788,7 @@ class Zm_Account
 				$params
 				$params
 			);
 			);
 
 
-//			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['SETPASSWORDRESPONSE'];
+			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['AUTHTOKEN'];
 		}
 		}
 		catch (SoapFault $exception)
 		catch (SoapFault $exception)
 		{
 		{