Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Can't get public folders
  •  
cik

Messages: 15
Karma: 1
Send a private message to this user
Hi,

i created a set of small php scripts to work with contacts ( insert and get more contacts at once into/from contacts folders )

These scripts worked pretty well until last KC update.

Now i didnt get any public foder in return of method "Folders.get" - only private folders. Users got access to these public folders from web client (they can enter into them ,display and edit contacts, etc )

But it looks like method "Folders.getPublic" works.

Did you change a way how to handle public folders in API?
  •  
Pavel Dobry (Kerio)

Messages: 5245
Karma: 251
Send a private message to this user
  •  
jo_moreware

Messages: 243

Karma: 3
Send a private message to this user
Does it mean that there no longer is a way to access public folders via the API?
  •  
cik

Messages: 15
Karma: 1
Send a private message to this user
No. It means you have to use Folders.getPublic instead of Folders.get

before API update :
$folders = $api->sendRequest('Folders.get');
foreach ($folders['list'] as $folder) {
  if ($folder['placeType'] <> 'FPlacePublic') continue; // Process only public folders
  // ...
}


after API update :
$folders = $api->sendRequest('Folders.getPublic');
foreach ($folders['list'] as $folder) {
  // you don't need to test placeType now
  // ...
}
Previous Topic: User, group and interface traffic counters
Next Topic: https
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Oct 17 06:01:54 CEST 2017

Total time taken to generate the page: 0.00456 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.