Documentation ¶
Index ¶
- Constants
- func Login(ctx context.Context, user string, password, twoFactorCode CredentialFetcher) error
- func NewFromCookieFile(ctx context.Context, path string) error
- type Account
- type AccountLoginResponse
- type AppleIDEntries
- type Apps
- type Archivews
- type BeneficiaryInfo
- type Calendar
- type Ckdatabasews
- type Ckdeviceservice
- type Cksharews
- type ConfigBag
- type Contacts
- type CredentialFetcher
- type Docws
- type Drivews
- type DsInfo
- type Find
- type Findme
- type Geows
- type ICloudEnv
- type ICloudInfo
- type Iclouddrive
- type Iwmb
- type Iworkexportws
- type Iworkthumbnailws
- type Keynote
- type Keyvalue
- type LoginData
- type Mail
- type MailFlags
- type Newspublisher
- type Notes3
- type Numbers
- type Pages
- type Photos
- type Photosupload
- type Premiummailsettings
- type Push
- type Reminders
- type RequestInfo
- type Schoolwork
- type Session
- type Settings
- type Sharedlibrary
- type Streams
- type Ubiquity
- type Uploadimagews
- type Urls
- type User
- type WebserviceCalendar
- type WebserviceContacts
- type WebservicePhotos
- type WebserviceReminders
- type WebserviceSettings
- type Webservices
Constants ¶
View Source
const ( AuthEndpoint = "https://idmsa.apple.com/appleauth/auth" SetupEndpoint = "https://setup.icloud.com/setup/ws/1" )
View Source
const (
TwoFactorAuthType = "hsa2"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountLoginResponse ¶
type AccountLoginResponse struct { DsInfo DsInfo `json:"dsInfo"` HasMinimumDeviceForPhotosWeb bool `json:"hasMinimumDeviceForPhotosWeb"` ICDPEnabled bool `json:"iCDPEnabled"` Webservices Webservices `json:"webservices"` PcsEnabled bool `json:"pcsEnabled"` ConfigBag ConfigBag `json:"configBag"` HsaTrustedBrowser bool `json:"hsaTrustedBrowser"` AppsOrder []string `json:"appsOrder"` Version int `json:"version"` IsExtendedLogin bool `json:"isExtendedLogin"` PcsServiceIdentitiesIncluded bool `json:"pcsServiceIdentitiesIncluded"` HsaChallengeRequired bool `json:"hsaChallengeRequired"` RequestInfo RequestInfo `json:"requestInfo"` PcsDeleted bool `json:"pcsDeleted"` ICloudInfo ICloudInfo `json:"iCloudInfo"` Apps Apps `json:"apps"` }
type AppleIDEntries ¶
type Apps ¶
type Apps struct { Calendar Calendar `json:"calendar"` Reminders Reminders `json:"reminders"` Keynote Keynote `json:"keynote"` Settings Settings `json:"settings"` Mail Mail `json:"mail"` Numbers Numbers `json:"numbers"` Photos Photos `json:"photos"` Pages Pages `json:"pages"` Notes3 Notes3 `json:"notes3"` Find Find `json:"find"` Iclouddrive Iclouddrive `json:"iclouddrive"` Newspublisher Newspublisher `json:"newspublisher"` Contacts Contacts `json:"contacts"` }
type BeneficiaryInfo ¶
type BeneficiaryInfo struct {
IsBeneficiary bool `json:"isBeneficiary"`
}
type Ckdatabasews ¶
type Ckdeviceservice ¶
type Ckdeviceservice struct {
URL string `json:"url"`
}
type CredentialFetcher ¶
type DsInfo ¶
type DsInfo struct { LastName string `json:"lastName"` ICDPEnabled bool `json:"iCDPEnabled"` TantorMigrated bool `json:"tantorMigrated"` Dsid string `json:"dsid"` HsaEnabled bool `json:"hsaEnabled"` IroncadeMigrated bool `json:"ironcadeMigrated"` Locale string `json:"locale"` BrZoneConsolidated bool `json:"brZoneConsolidated"` IsManagedAppleID bool `json:"isManagedAppleID"` IsCustomDomainsFeatureAvailable bool `json:"isCustomDomainsFeatureAvailable"` IsHideMyEmailFeatureAvailable bool `json:"isHideMyEmailFeatureAvailable"` GilliganInvited bool `json:"gilligan-invited"` AppleIDAliases []interface{} `json:"appleIdAliases"` HsaVersion int `json:"hsaVersion"` UbiquityEOLEnabled bool `json:"ubiquityEOLEnabled"` IsPaidDeveloper bool `json:"isPaidDeveloper"` CountryCode string `json:"countryCode"` NotificationID string `json:"notificationId"` PrimaryEmailVerified bool `json:"primaryEmailVerified"` ADsID string `json:"aDsID"` Locked bool `json:"locked"` HasICloudQualifyingDevice bool `json:"hasICloudQualifyingDevice"` PrimaryEmail string `json:"primaryEmail"` AppleIDEntries []AppleIDEntries `json:"appleIdEntries"` GilliganEnabled bool `json:"gilligan-enabled"` FullName string `json:"fullName"` MailFlags MailFlags `json:"mailFlags"` LanguageCode string `json:"languageCode"` AppleID string `json:"appleId"` AnalyticsOptInStatus bool `json:"analyticsOptInStatus"` FirstName string `json:"firstName"` ICloudAppleIDAlias string `json:"iCloudAppleIdAlias"` NotesMigrated bool `json:"notesMigrated"` BeneficiaryInfo BeneficiaryInfo `json:"beneficiaryInfo"` HasPaymentInfo bool `json:"hasPaymentInfo"` PcsDeleted bool `json:"pcsDeleted"` AppleIDAlias string `json:"appleIdAlias"` BrMigrated bool `json:"brMigrated"` StatusCode int `json:"statusCode"` FamilyEligible bool `json:"familyEligible"` }
type ICloudInfo ¶
type ICloudInfo struct {
SafariBookmarksHasMigratedToCloudKit bool `json:"SafariBookmarksHasMigratedToCloudKit"`
}
type Iclouddrive ¶
type Iclouddrive struct { }
type Iworkexportws ¶
type Iworkthumbnailws ¶
type Newspublisher ¶
type Newspublisher struct {
IsHidden bool `json:"isHidden"`
}
type Photosupload ¶
type Premiummailsettings ¶
type RequestInfo ¶
type Schoolwork ¶
type Schoolwork struct { }
type Session ¶
type Session struct { ClientID string `json:"clientID"` AccountCountry string `json:"accountCountry"` SessionID string `json:"sessionID"` SessionToken string `json:"sessionToken"` TrustToken string `json:"trustToken"` SCNT string `json:"scnt"` Data AccountLoginResponse `json:"data"` // contains filtered or unexported fields }
type Settings ¶
type Settings struct {
CanLaunchWithOneFactor bool `json:"canLaunchWithOneFactor"`
}
type Sharedlibrary ¶
type Sharedlibrary struct {}
type Uploadimagews ¶
type Urls ¶
type Urls struct { AccountCreateUI string `json:"accountCreateUI"` AccountLoginUI string `json:"accountLoginUI"` AccountLogin string `json:"accountLogin"` AccountRepairUI string `json:"accountRepairUI"` DownloadICloudTerms string `json:"downloadICloudTerms"` RepairDone string `json:"repairDone"` AccountAuthorizeUI string `json:"accountAuthorizeUI"` VettingURLForEmail string `json:"vettingUrlForEmail"` AccountCreate string `json:"accountCreate"` GetICloudTerms string `json:"getICloudTerms"` VettingURLForPhone string `json:"vettingUrlForPhone"` }
type WebserviceCalendar ¶
type WebserviceContacts ¶
type WebservicePhotos ¶
type WebserviceReminders ¶
type WebserviceSettings ¶
type Webservices ¶
type Webservices struct { Reminders WebserviceReminders `json:"reminders"` Ckdatabasews Ckdatabasews `json:"ckdatabasews"` Photosupload Photosupload `json:"photosupload"` Photos WebservicePhotos `json:"photos"` Drivews Drivews `json:"drivews"` Uploadimagews Uploadimagews `json:"uploadimagews"` Schoolwork Schoolwork `json:"schoolwork"` Findme Findme `json:"findme"` Ckdeviceservice Ckdeviceservice `json:"ckdeviceservice"` Iworkthumbnailws Iworkthumbnailws `json:"iworkthumbnailws"` Calendar WebserviceCalendar `json:"calendar"` Docws Docws `json:"docws"` Settings WebserviceSettings `json:"settings"` Premiummailsettings Premiummailsettings `json:"premiummailsettings"` Ubiquity Ubiquity `json:"ubiquity"` Streams Streams `json:"streams"` Keyvalue Keyvalue `json:"keyvalue"` Archivews Archivews `json:"archivews"` Push Push `json:"push"` Iwmb Iwmb `json:"iwmb"` Iworkexportws Iworkexportws `json:"iworkexportws"` Geows Geows `json:"geows"` Account Account `json:"account"` Contacts WebserviceContacts `json:"contacts"` }
Click to show internal directories.
Click to hide internal directories.