Skip to content

Commit

Permalink
fix login issue in china
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyi619 authored and mandarons committed Nov 26, 2023
1 parent 1ab0db7 commit 24c37ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Authentication without using a saved password is as simple as passing your usern
from icloudpy import ICloudPyService
api = ICloudPyService('[email protected]', 'password')
# For China region
api = ICloudPyService('[email protected]', 'password' auth_endpoint="https://www.icloud.com.cn",setup_endpoint="https://setup.icloud.com.cn/setup/ws/1",)
api = ICloudPyService('[email protected]', 'password', home_endpoint="https://www.icloud.com.cn",setup_endpoint="https://setup.icloud.com.cn/setup/ws/1",)
```

In the event that the username/password combination is invalid, a `ICloudPyFailedLoginException` exception is thrown.
Expand Down
1 change: 0 additions & 1 deletion icloudpy/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def main(args=None):
apple_id=username.strip(),
password=password.strip(),
cookie_directory=session_directory,
auth_endpoint="https://idmsa.apple.com.cn/appleauth/auth",
home_endpoint="https://www.icloud.com.cn",
setup_endpoint="https://setup.icloud.com.cn/setup/ws/1",
)
Expand Down

0 comments on commit 24c37ca

Please sign in to comment.