gpt4 book ai didi

linux - 使用 curl 或其他一些 bash 命令登录到 Apple Developer Console

转载 作者:太空狗 更新时间:2023-10-29 12:03:10 26 4
gpt4 key购买 nike

我要解决的问题是如何尽可能简单地(即使用 curl 或 wget)从站点(即 developer.apple.com)下载一些文件(即配置文件)。

以前有人问过关于如何登录网站的问题,但我不知道如何将答案应用到 Apple 上。

我在登录部分遇到了问题。这是我尝试过的:

curl --output out.html --user someUser:somePassword "https://idmsa.apple.com/IDMSWebAuth/login?&appIdKey=someAutoGeneratedKey" 

还有这个:

curl --output out.html --data "appleId=someUser&accountpassword=somePassword&submit=Login" "https://idmsa.apple.com/IDMSWebAuth/login?&appIdKey=someAutoGeneratedKey"

这两个命令都无法让我登录。

关于如何做的任何指示?

最佳答案

我设法让它工作。

对于登录(这里的关键是使用 --location 标志并保存 cookie):

curl --location --data "appIdKey=someAutoGeneratedKey&appleId=someUser&accountPassword=somePassword" "https://idmsa.apple.com/IDMSWebAuth/authenticate" --cookie-jar ./authenticate_cookie --output auth_output.html

获取 JSON 格式的设备列表:

curl --data "teamId=someTeamID&includeRemovedDevices=true&includeAvailability=true&pageSize=500&pageNumber=1&sort=status%253dasc" "https://developer.apple.com/services-account/QH65B2/account/ios/device/listDevices.action" --cookie ./authenticate_cookie --output all_devices.json

为了获得请求的正确链接,我使用了 FireFox 开发人员工具。

请注意,链接和调用方式将来可能会发生变化。

关于linux - 使用 curl 或其他一些 bash 命令登录到 Apple Developer Console,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27275897/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com