Skip to content

Instantly share code, notes, and snippets.

stuartlangridge / icloud-cal.php
Created Jan 26, 2016
PHP to fetch a calendar from iCloud with authentication and CalDAV
View icloud-cal.php
// get this data by logging into on the calendars page and looking at the dev tools
// as per
$account = array(
'server' => '', // note, this will be p12 or something, not P0; see the server that serves json from
'icloudid' => '', // the "dsid"
'appleid' => '', // your Apple ID; will be an email address
'pass' => '', // password for your Apple ID
'calid' => '' // the "pGuid"