问题
I'm wondering if there is an API of some sort available from Apple for iCloud, to which one can hook into and get notified when contact information changes.
The point of this is that I'm wondering whether it is possible to sync contacts from iCloud outside of iCloud (e.g. from iCloud to some sync server and then to other devices).
Thanks!
回答1:
Here's an implementation of what you are looking for.
Although there is a bug within it, when you have more than 500 contacts, it doesn't work.
I think there is a problem with pagination. If you find out what's wrong with it, do tell.
https://github.com/mindcollapse/iCloud-API
来源:https://stackoverflow.com/questions/9094114/is-there-an-api-to-connect-to-icloud-and-get-contacts-and-contact-changes