Fetching Contacts (users/lookup/contacts)
You can fetch discoverable users in the current userâs address book.
Path
POST [path]/database/[version]/[container]/[environment]/public/users/lookup/contacts
Parameters
- path
The URL to the CloudKit web service, which is
https://api.apple-cloudkit.com.- version
The protocol versionâcurrently, 1.
- container
A unique identifier for the appâs container. The container ID begins with
iCloud..- environment
The version of the appâs container. Pass
developmentto use the environment that is not accessible by apps available on the store. Passproductionto use the environment that is accessible by development apps and apps available on the store.
Response
The response is a dictionary containing the results of the operation with the following key:
Key |
Description |
|---|---|
|
An array of user dictionaries, described in User Dictionary, but not including an |
Related Framework API
This request is similar to the CKDiscoverAllContactsOperation class in the CloudKit framework.
Fetching Current User (users/current)
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2016-06-13
