Created
September 16, 2019 02:14
-
-
Save kawaz/21dc0849c917c4c55ee12756c897472f to your computer and use it in GitHub Desktop.
iphoneを探すのメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username='[email protected]' | |
password='apple-id-no-password' | |
authheader="Authorization: Basic $(echo -n "$username:$password" | base64)" | |
url_initClient="https://fmipmobile.icloud.com/fmipservice/device/$username/initClient" | |
url_playSound="https://fmipmobile.icloud.com/fmipservice/device/$username/playSound" | |
# initClient | |
curl -vXPOST "$url_initClient" -H "$authheader" > initClient.json | |
# デバイス一覧 | |
cat initClient.json | jq '.content|map({id,name,deviceClass,deviceModel,deviceDisplayName,rawDeviceModel,modelDisplayName,deviceDisplayName,passcodeLength,deviceModel,modelDisplayName})' | |
# playSound | |
curl -vXPOST "$url_playSound" -H "$authheader" -d '{"device":"deviceidxxxxxxxxxxxxxxxxxxxxxxxxxxxx","subject":"探し中"}' > tee playSound.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment