Malcolm Hall

Results 130 comments of Malcolm Hall

I took a quick look at the CloudKit web services reference document and came up with this method, try adding it to Query.php ``` public function sort($fieldName, $ascending = true){...

It's possible, I had a look at [upload assets](https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/UploadAssets/UploadAssets.html#//apple_ref/doc/uid/TP40015240-CH8-SW1) section of the web services doc and it seems first there is a post of the asset record and then using...

Also are you running it from a command line utility or via a page on a web server?

I was thinking about if there is no feedback about the progress and if the page is reloaded, then it might end up creating the same asset record twice. However...

By the way have you checked Apples javascript API? That is designed for web pages.

Ah right that's what I meant by command line. And most people run it periodically using cron. So we can forget all the session stuff then. If no one else...

In Record.php line 139 you could try something else for the type. I think they might have changed it, I think they were mentioned [here](https://developer.apple.com/library/content/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/Types.html#//apple_ref/doc/uid/TP40015240-CH3-SW2)

erm...maybe he meant: `$fields[$key] = ['value' => $fv];` i.e. removing the type from the array

You could use a [cron job](https://www.howtoforge.com/a-short-introduction-to-cron-jobs) to run the script periodically. Just make sure you do the full path to your php executable and the script which you can find...

Thanks will do and by the way you can edit that page yourself and it does a pull request which I accept.