icloud-api

get icloud web service endpoints to fetch data

元气小坏坏 提交于 2021-02-07 06:56:34
问题 My question may look silly but I am asking this after too much search on Google, yet not have any clue. I am using iCloud web services. For that I have converted this Python code to PHP. https://github.com/picklepete/pyicloud Up to this, everything is working good. When authenticate using icloud username,password I am getting a list of web service URLs as part of response. Now for example to use Contacts web service, I need to use Contact web service URL and add a part to that URL to fetch

Upload new videos automatically from i cloud to youtube

拈花ヽ惹草 提交于 2020-01-16 08:39:49
问题 My friend has an iPhone. All videos he captures using iPhone are synced with iCloud. I am looking for something similar to Zapier to automatically upload videos from iCloud to youtube. I tried searching for solution similar to Zapier which works with google drive as well as Dropbox and many other online storage but not iCloud. I also tried to use microsoft power automate but it doesn't seem to have trigger for iCloud. Anyone please suggest way to automatically sync iCloud videos to youtube

How do i make my cloudkit app load the data as its loading?

感情迁移 提交于 2019-12-24 14:34:48
问题 In the app i am making, there will be a lot of data for the app to load from iCloud. My problem is that it does not load the data into a collection view until its finished receiving all the data(which takes a while). I want the app to load the data onto the collection view as its receiving the data, so the user does not have to wait. Or is it better to have the app only load some of the data at a time? How do i do this? Here is my code that i am using to load the data. Note: I am using swift

CloudKit not returning the most recent data

早过忘川 提交于 2019-12-18 14:52:49
问题 I am having this issue where I save something to the icloud using CloudKit but immediately fetching the results doesn't return the latest data inserted. Example let todoRecord = CKRecord(recordType: "Todos") todoRecord.setValue(todo, forKey: "todotext") publicDB.saveRecord(todoRecord, completionHandler: { (record, error) -> Void in NSLog("Saved in cloudkit") let predicate = NSPredicate(value: true) let query = CKQuery(recordType: "Todos", predicate: predicate) self.publicDB.performQuery(query

Why ubiquityIdentityToken returns nil?

半世苍凉 提交于 2019-12-18 09:09:08
问题 NSFileManager.defaultManager().ubiquityIdentityToken on some device in some case returns nil, even I set up iCloud Documents in Capabilities and I am logged in to iCloud on device. How reliable operation of the ubiquityIdentityToken do you met? Am I doing something wrong? On iPhone it returns correctly with a real token, but on iPad it returns with nil, even if I am logged in. 回答1: To get token, you need additionaly to turn on iCloud Drive on device. If it is off ubiquityIdentityToken will

Exposing an app's ubiquitous container to iCloud Drive in iOS 8

余生颓废 提交于 2019-12-17 15:34:28
问题 I'm developing an iCloud-enabled app where users will be able to import and export files via iCloud Drive. When browsing iCloud Drive, either using the UIDocumentPickerViewController (iOS 8) or the Finder (OS X Yosemite), I can see directories created/owned by other iCloud-Drive-enabled apps, such as, Automator, Keynote, or TextEdit. I want our app to expose its ubiquitous documents directory in iCloud Drive, too, but haven't been able to figure it out yet. Within some of the aforementioned

iCloud calendar: Getting unauthorized error from CalDav server

倖福魔咒の 提交于 2019-12-12 01:43:21
问题 I'm trying to PUT an event on iCloud calendar using CalDav. After several proper requests and responses and getting the user principal and calendars, when i try to PUT an event, the server returns Unauthorized error. Here's the network log from fiddler: Request: OPTIONS https://p49-caldav.icloud.com/ HTTP/1.1 Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Is Team Identifier still necessary for iCloud Container

匆匆过客 提交于 2019-12-11 08:01:27
问题 I have a quick question: I noticed that with Xcode 6 that the default iCloud containers are named something like iCloud.com.company.myApp . Even though my Team-Id is selected under the General > Identity project settings. In the past I would have container ids including my Team-Id like ABC12D3EF8.com.company.myApp . Will I need to change the iCloud container to include the Team-Id for any future mac app? or is the iCloud prefix enough in a post iCloud Drive era? Thanks 回答1: The iCloud prefix

CKDiscoverAllContactsOperation not fetching contacts

泄露秘密 提交于 2019-12-10 17:08:09
问题 I am using CKDiscoverAllContactsOperation but its not working fine for me. -(void)queryForAllUsers: (void (^)(NSArray *records))completionHandler { CKDiscoverAllContactsOperation *op = [[CKDiscoverAllContactsOperation alloc] init]; [op setUsesBackgroundSession:YES]; op.queuePriority = NSOperationQueuePriorityNormal; [op setDiscoverAllContactsCompletionBlock:^(NSArray *userInfos, NSError *error) { if (error) { NSLog(@"An error occured in %@: %@", NSStringFromSelector(_cmd), error); //abort();