1. at mac mini, use safari login https://appleid.apple.com/
2. left menu at login&security / Apple password (right last) /
curl iCal
password check ~/ca/apple_3party_app_pwd-20230709.txt
vi foo
--
curl -s -X PROPFIND -u "cpfong@somewhere.com" -H "Depth: 0" --data "" https://caldav.icloud.com/
@gaia-> cat foo | sh
Enter host password for user 'cpfong@somewhere.com': #note: must 3party password, canNOT use orig pwd of apple id, it will FAIL!
--
/145147xxxx/principal/
HTTP/1.1 200 OK
curl -s -X PROPFIND -u "cpfong@somewhere.com" -H "Depth: 0" --data "" https://caldav.icloud.com/145147xxxx/principal/
Enter host password for user 'cpfong@me.com':
/145147xxxx/principal/
https://p69-caldav.icloud.com:443/145147xxxx/calendars/
HTTP/1.1 200 OK
curl -s -X PROPFIND -u "cpfong@me.com" -H "Depth: 1" --data "" https://p69-caldav.icloud.com:443/145147xxxx/calendars/ | grep displayname