News for hackers. Stuff that matters.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by mozumder on Friday February 05, 2016 @04:43PM (#11044876)
Anyone know the latencies associated with an URL request?

Are we talking 15ms range? 150ms range? 600ms-1s range?

Also, can we access binary blobs/files/images via this API? It seems the max file size of an asset field is 15mb, which is smaller than a Raw photo.

Re:CloudKit Now Supports Server-To-Server Web Service Requests by kluivers on Saturday February 06, 2016 @03:22AM (#11046994)
Yes, you can access blobs too. I've been using the HTTP API (the one that backs CloudKitJS) to process data in app engine. So far I just used the JS API token for authentication. Records with an associated blob asset provide a temporary accessible URL to the asset which is usually stored on S3.

Not sure about latency of the requests, never had a problem with that. More often the problem was that I had confirmation my client software had written data to CloudKit but it might take a while before the server can actually query for it. (Could be an indexing delay haven't checked if the object is immediately available using the object ID)

Re:CloudKit Now Supports Server-To-Server Web Service Requests by srik on Friday February 05, 2016 @04:10PM (#11044649)
This is a good step. I expect to see a whole slew of cloudkit dashboard services pop up soon.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by jvz on Saturday February 06, 2016 @11:22AM (#11048308)
By coincidence, I was trying to test out this exact thing yesterday and was having trouble with authentication. Does anyone know what they mean by "ISO8601" in their instructions for building an HTTP API request[1]? AFAIK there are a few different date formats that would qualify (e.g. with or without hyphens).

[1] https://developer.apple.com/library/ios/documentation/DataMa...

Re:CloudKit Now Supports Server-To-Server Web Service Requests by bluecloud1 on Saturday February 06, 2016 @06:20PM (#11050511)
An example date format is 2016-01-25T22:15:43Z. Also note that you don't have to manually configure and sign the requests yourself, you can simply use CloudKit JS with Node.js. A sample script has been published at https://developer.apple.com/library/ios/samplecode/CloudAtla...
Re:CloudKit Now Supports Server-To-Server Web Service Requests by jvz on Saturday February 06, 2016 @07:21PM (#11050809)
Thanks, though I'm still getting authentication errors. I don't want to use the JS library since I'm not working in Javascript.

I'd kill for a working code sample, in any language. I tried looking at the JS source, but it's minified and thus quite hard to read.

Re:CloudKit Now Supports Server-To-Server Web Service Requests by bluecloud1 on Sunday February 07, 2016 @04:56PM (#11055095)
Re:CloudKit Now Supports Server-To-Server Web Service Requests by ianlevesque on Sunday February 07, 2016 @03:12AM (#11052141)
I happen to be working on a client in C# at the moment, I'll open source it soon.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by officialchicken on Friday February 05, 2016 @03:53PM (#11044528)
About 3-4 years too late. This should have been released with iOS5/iCloud - when it might have been useful.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by Armand_Grillet on Friday February 05, 2016 @04:33PM (#11044809)
CloudKit JS has only been released 6 months ago and that was my biggest request concerning it, I'm happy they didn't wait until WWDC 2016 to add this support.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by zepto on Friday February 05, 2016 @04:07PM (#11044622)
Yeah - nobody was using parse, which proves there is no demand for this kind of thing.

/s

Re:CloudKit Now Supports Server-To-Server Web Service Requests by azinman2 on Saturday February 06, 2016 @12:19AM (#11046663)
What makes you say no one was using it (my understanding is the opposite), and that most certainly does not lead to your conclusion even if the first part is true.

Just because FB killed it doesn't mean it no one was using it...

Re:CloudKit Now Supports Server-To-Server Web Service Requests by spicyj on Saturday February 06, 2016 @01:30AM (#11046804)
The "/s" indicates sarcasm.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by pljns on Friday February 05, 2016 @04:12PM (#11044660)
Parse's advantage was not only convenience but multiplatform.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by kennywinker on Friday February 05, 2016 @04:14PM (#11044674)
CloudKit has a javascript sdk...
Re:CloudKit Now Supports Server-To-Server Web Service Requests by kluivers on Saturday February 06, 2016 @03:09AM (#11046974)
Which is based around a HTTP API (also documented by Apple). Not that hard to wrap that in an easily usable SDK for other platforms.
Re:CloudKit Now Supports Server-To-Server Web Service Requests by zepto on Friday February 05, 2016 @04:29PM (#11044783)
It doesn't turn out to have been.