Browse Source

debug authtoken call

andre 5 năm trước cách đây
mục cha
commit
493ff74201
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      api/Zm/Account.php

+ 2 - 2
api/Zm/Account.php

@@ -778,7 +778,7 @@ class Zm_Account
 
 		$params = array(
 			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
@@ -788,7 +788,7 @@ class Zm_Account
 				$params
 			);
 
-//			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['SETPASSWORDRESPONSE'];
+			$result = $result['SOAP:ENVELOPE']['SOAP:BODY']['AUTHTOKEN'];
 		}
 		catch (SoapFault $exception)
 		{