mirror of
https://github.com/PaiGramTeam/GetToken.git
synced 2024-12-01 19:06:51 +00:00
7 lines
476 B
Bash
7 lines
476 B
Bash
#!/bin/bash
|
|
|
|
# shellcheck disable=SC2154
|
|
jsonData="$(curl -X GET "https://api-takumi.miyoushe.com/ptolemaios_api/api/getLatestRelease" -H "x-rpc-client_type: 2" -H "x-rpc-app_version: 2.67.1" -H "x-rpc-channel: miyousheluodi" -H "x-rpc-h265_supported: 1" -H "referer: https://app.mihoyo.com" -H "x-rpc-verify_key: bll8iq97cem8" -H "x-rpc-csm_source: " -H "user-agent: okhttp/4.9.3")"
|
|
url="$(echo "$jsonData" | jq --raw-output '.data.package_url')"
|
|
curl -o miyoushe.apk "$url"
|