Apple企业伙伴Feed缺少电影捆绑数据,或者我漏了什么?
创始人
2024-09-10 19:30:43
0

确保您的Apple企业账户已购买了电影捆绑包,如果还是无法获取到数据,可以尝试重新注册和生成凭证。以下是Python示例代码:

import jwt
import requests
import time

# Replace with your values
jwt_key_id = ""
team_id = ""
app_bundle_id = ""
private_key_path = ""

# URL to obtain a token from
jwt_token_url = "https://appleid.apple.com/auth/token"

# Time the JWT is generated
time_now = int(time.time())

# JWT header
jwt_headers = {
    "alg": "ES256",
    "kid": jwt_key_id,
    "typ": "JWT"
}

# JWT Payload
jwt_payload = {
    "iss": team_id,
    "iat": time_now,
    "exp": time_now + 86400 * 180,
    "aud": "https://appleid.apple.com",
    "sub": app_bundle_id,
}

# Load Private Key and sign JWT
with open(private_key_path, "r") as private_key_file:
    private_key = private_key_file.read()

jwt_token = jwt.encode(jwt_payload, private_key, algorithm="ES256", headers=jwt_headers)

# Request Access Token from Apple's Authentication Server
r = requests.post(
    jwt_token_url,
    data={
        "client_id": team_id,
        "client_secret": jwt_token,
        "grant_type": "client_credentials",
    },
)

token_data = r.json()

# The actual request to the API
response = requests.get(
    "https://api.appstoreconnect.apple.com/v1/apps/{}/appStoreVersionRelationships".format(app_bundle_id),
    params={
        "include": "bundle,merchandisedVersions,app",
    },
    headers={
        "Authorization": "Bearer {}".format(token_data["access_token"])
    },
)

print(response.json())

相关内容

热门资讯

透视代打!hhpoker辅助器... 透视代打!hhpoker辅助器,聚星ai辅助工具下载,玩家教你(先前真的有挂);揭秘教程安装方法样式...
透视攻略!wepoker底牌透... 透视攻略!wepoker底牌透视脚本下载,hhpoker软件靠谱吗,黑科技教程(本来真的是有挂)1、...
透视苹果版!wpk有脚本吗,h... 透视苹果版!wpk有脚本吗,hh poker辅助有用吗,揭秘教程(竟然有挂)是一款可以让一直输的玩家...
透视线上!aapoker透视怎... 1、透视线上!aapoker透视怎么用,wepoker游戏下载,可靠教程(原本是真的有挂)。2、aa...
透视软件!wpk有脚本吗,po... 透视软件!wpk有脚本吗,pokemmo手机版脚本,辅助教程(一直真的有挂)wpk有脚本吗平台为新手...
辅助透视!aapoker辅助工... 辅助透视!aapoker辅助工具免费下载,pokemmo手机版脚本,2025新版技巧(切实真的是有挂...
透视ai代打!德普之星透视辅助... 透视ai代打!德普之星透视辅助ios,wepoker作弊方法,AI教程(都是是有挂),支持语音通讯、...
透视安卓版!wepoker透视... 透视安卓版!wepoker透视脚本苹果,wpk德州局怎么透视,解密教程(固有是真的有挂)1、这是跨平...
透视实锤!wpk辅助插件叫什么... 透视实锤!wpk辅助插件叫什么,wepoker透视最简单三个步骤,wepoke教程(从前真的是有挂)...
透视私人局!wpk透视辅助软件... WePoker透视辅助工具核心要点解析‌,透视私人局!wpk透视辅助软件,德州辅助工具到底怎么样,技...