If you have enabled two-factor authentications (2FA) or two-step authentication (2SA) for the account you will have to do some extra work: if api. Two-step and two-factor authentication (2SA/2FA) Note: Authentication will expire after an interval set by Apple, at which point you will have to re-authenticate. If you would like to delete a password stored in your system keyring, you can clear a stored password using the -delete-from-keyring command-line option: $ icloud -username -delete-from-keyring If you have stored a password in the keyring, you will not be required to provide a password when interacting with the command-line tool or instantiating the PyiCloudService class for the username you stored the password for. You can also store your password in the system keyring using the command-line tool: $ icloud -username ICloud Password for password in keyring? (y/N) In the event that the username/password combination is invalid, a PyiCloudFailedLoginException exception is thrown. AuthenticationĪuthentication without using a saved password is as simple as passing your username and password to the PyiCloudService class: from pyicloud import PyiCloudService api = PyiCloudService (, 'password' ) It’s powered by the fantastic requests HTTP library.Īt its core, PyiCloud connects to iCloud using your username and password, then performs calendar and iPhone queries against their API. PyiCloud is a module which allows pythonistas to interact with iCloud webservices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |