2012-02-28 3 views

답변

0

내가 (모든 것을로드하는 것보다) 알 수있는 것에서 커서를 사용해야합니다.

<?php 

/* $this is a class that extends SoapClient using the groupwise.wsdl */ 
$q = (object)[ 
    'folderType' => 'Mailbox', 
    'view' => 'count unreadCount' 
]; 

$folder = $this->getFolderRequest($q); 

$q = (object)[ 
    'container' => $folder->folder->id, 
    'view' => 'subject peek noDownload' 
]; 

$cursor = $this->createCursorRequest($q); 

$q = (object)[ 
    'container' => $data->folder->id, 
    'cursor' => $cursor->cursor, 
    'position' => 'end', 
    'count' => 20, 
    'forward' => TRUE 
]; 

$msgs = $this->readCursorRequest($q); 

var_dump($msgs); 

/* You could also throw readCursorRequest() in a loop and track offset + position for more intensive purposes */ 
?> 

더 읽기 : https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwwebservices/data/b7m3i3x.html

+0

죄송합니다! 미안하다. 나는 이것이 웹 서비스를위한 것이라고 생각한다. – thinice