I've got an app using CloudKit and I'm trying to build a simple web interface to pull the data out of CloudKit so users can view the information. The login is working perfectly, but I can't find any samples on how to structure the requests for records/query and records/lookup.
For records/lookup, I'm POSTing to a similar URL:
https://api.apple-cloudkit.com/database/1/iCloud.com.[mycontainer]/development/private/records/lookup?ckAPIToken=[myToken]&ckSession=[myAuthenticatedSession]
However, using cURL and PHP, I can't seem to get the "records" POST right. The error messages don't provide enough detail Apple hasn't provided any samples in the documentation. What is the proper way to POST records to get a valid response from CloudKit?