Questions tagged [cloudkit-web-services]
70 questions
0
votes
1 answer
CloudKit Server-to-Server auth: Keep getting 401 Authentication failed
I have been recently exploring the CloudKit and related frameworks. I got the communication with my app working, as well as with my website using CloudKitJS. Where I am struggling is the Server-to-Server communication (which I would need for…

Matyáš Boháček
- 7
- 2
0
votes
1 answer
401 Error on CloudKit Server-to-Server Authentication on Node JS
I'm trying to query my public CloudKit database using server-to-server authentication. I've generated the key according to Apple's docs, but no matter what I do I get this error:
401 - Unauthorized
data: {
uuid: '...',
serverErrorCode:…

Clifton Labrum
- 13,053
- 9
- 65
- 128
0
votes
1 answer
Unable to connect with CloudKit-JS CONFIGURATION_ERROR
I am trying to set up Cloudkit-JS to access an existing Cloudkit database through a web browser. The db itself works fine and I have an iOS app which connects to the db without any problems.
I've generated an API Token in the Cloudkit Dashboard and…

GoPlaces
- 3
- 2
0
votes
0 answers
How I can I troubleshoot odd PHP Parse Error?
Using PHP 7.0.33
I have PHP code that performs a lookup via CloudKit web services. I been using the codefor a year or more and it works fine.
However, when required in one file, usersavedworks.html, the code is throwing a parse error
Parse error:…

Peter Wiley
- 820
- 7
- 19
0
votes
1 answer
CloudKit: Proper Security Role for Web Services App
I have a server-side application that uses CloudKit Web Services to make changes to my CloudKit container. I generated a server-to-server key for this.
I want my server-side script to be able to update any record of type Person in my Public…

Clifton Labrum
- 13,053
- 9
- 65
- 128
0
votes
1 answer
How can I see values saved in CloudKit Dashboard?
So I was able to save data in the dashboard, but I'm only able to see the keys in Cloudkit's dashboard. How do I actually see the values for the keys?
Here is my code:

ScottyBlades
- 12,189
- 5
- 77
- 85
0
votes
1 answer
How to keep logged in session after user is successfully authenticated with his iCloud Account?
This is what I call when my site is loaded:
(function($){})(window.jQuery);
$(document).ready(function () {
window.addEventListener('cloudkitloaded', function() {
CloudKit.configure({
containers: [{
containerIdentifier:…

Bartłomiej Semańczyk
- 59,234
- 49
- 233
- 358
0
votes
1 answer
How to save a record in CloudKit JS v2
Using CloudKit v1 you could save a record like this:
function demoSaveRecord(recordName,recordChangeTag,zoneName,name,location,asset) {
var container = CloudKit.getDefaultContainer();
var privateDB = container.privateCloudDatabase;
var…

O.Olivier
- 230
- 2
- 12
0
votes
1 answer
How to Create CKReference using CloudKit Web Services?
I've using CK Web services very successfully, but I am stumped about how to create a CKReference.
I've looked at the docs here re Reference Dictionaries, but can't make such a dictionary work.
My php generates the following operations…

Peter Wiley
- 820
- 7
- 19
0
votes
1 answer
CloudKit Server to Server Backup with Google Cloud
I would like to run a daily backup of my App's CloudKit (iCloud) container to Google Cloud.
Apple have announced that CloudKit now supports server to server requests but I was wondering if this is possible to perform backups and if so, how?
Thank…

Tom Coomer
- 6,227
- 12
- 45
- 82
0
votes
1 answer
How to do a CloudKit record lookup with recordName?
I am trying to do a lookup from a CloudKit database via a PHP script.
The CloudKit documentation for doing a lookup says that a lookup request requires a JSON dictionary with a records key pointing to an array of Lookup Record Dictionaries that…

Peter Wiley
- 820
- 7
- 19
0
votes
1 answer
How do I get the outgoing JSON from a CloudKit request?
I'm debugging the JSON for a C# app that POSTs to CloudKit using server keys.
According to the docs, the JSON I need to use to create/modify a record looks like this:
{
"operationType" : "create",
"record" : {
"recordType" :…

makerofthings7
- 60,103
- 53
- 215
- 448
0
votes
1 answer
format row background after data has loaded from cloudkit js
I'm trying to format my table rows with odd & even background colouring after the rows have loaded from knockout.js/cloudkit.js. Every time it loads, I either get all grey rows or all white rows.
$(function() {
…

James Ham
- 119
- 7
0
votes
1 answer
AUTHENTICATION_FAILED when querying CloudKit public database with CloudKit Web Services API in Google Apps Script
I'm trying to use the CloudKit Web Services API to fetch Article records from my production CloudKit container's public database within Google Apps Script.
My request is based on the documentation on this page.
Here's my code:
// variables for the…

gohnjanotis
- 6,513
- 6
- 37
- 57
0
votes
1 answer
How to update multiple records at once in CloudKitJS
I am having trouble updating multiple records at once. I keep getting this error:
Record updated multiple times in one batch
var options = {
zoneName: undefined,
operationType :…

shakked
- 783
- 8
- 24