CloudKit Node JS Client

Hi,


from the wwdc15 videos I heard something about node js. Does apple provide a node js client library yet? I'm interested in sync'ing between my node/mongo backend and cloudkit.


Best,

Tom

No, however a native javascript library is downloadable from here

https://developer.apple.com/icloud/index.html

CloudKit JS works with Node.js. There is an existing thread with more details on this:
https://forums.developer.apple.com/message/13892#13892

Hi, Can Apple please provide a working code sample regarding writing data to cloudkit through webservice?

But not in Node.js, can you guys show us how to do it in other language like Python or Go?

I have been struggling with writing data using webservice for months. No one seems to have an answer.


Thanks

Here is Apple's Node sample:


"This node script uses a server-to-server key to make public database calls with CloudKit JS"

https://developer.apple.com/library/content/samplecode/CloudAtlas/Listings/Node_node_client_s2s_index_js.html#//apple_ref/doc/uid/TP40014599-Node_node_client_s2s_index_js-DontLinkElementID_22


I don't think you can use node script with registerForNotifications though, isn't working for me anyway, fails with "Error: no auth method found"

The sample is clear and good. After following the sameple I recevie a : TRY_AGAIN_LATER error and the found references to this error are very limited to make some

Edited... a day later

never mind. I was using the Server-to-Server key identifier instead of the App Identifier . After that I could properly connect.

CloudKit Node JS Client
 
 
Q