当我尝试使用下面的 App Annie Intelligence API 时
我得到以下403 forbidden错误。
{
"code": 403,
"error": "This user account does not have access to App Annie Intelligence API."
}
Run Code Online (Sandbox Code Playgroud)
我可以知道如何启用 App Annie Intelligence API 的访问权限吗
当我将我的 Apple 帐户连接到 App Annie 时,我创建了一个新的电子邮件地址(实际上只是来自我域的简单转发电子邮件)附加到一个只能访问销售数据的 Apple 帐户 - 并将该帐户登录到 App Annie。当我将我的 Amazon 帐户连接到 App Annie 时,Amazon 可以为我提供给 App Annie 的我的应用程序数据创建一个特殊的访问密钥。这两种解决方案都是合理且直接的。
当我尝试将我的帐户连接到 Google Play 时,App Annie 需要我的 google 帐户密码!在我看来,这似乎完全不合理。我想让 App Annie 只访问销售数据,而不是我的整个 Google 帐户。App Annie 是否值得信赖甚至不是重点——这些天公司一直被黑客攻击(例如 InstaAgent)。
我需要使用 Python 从 App Annie 的 API 中提取一些数据。但是我无法连接。我仔细检查了我的 API 密钥和“文档”。有谁知道我如何通过他们的 API 进行连接?我不断收到 401 未经授权的访问错误。
https://support.appannie.com/hc/en-us/articles/204208864-3-Authentication
import json
import requests
url = 'https://api.appannie.com/v1.2/apps/ios/app/12345678/reviews?start_date=2012-01-01&end_date=2012-02-01&countries=US'
key = 'Authorization: bearer b7e26.........'
response = requests.get(url, key) #After running up to this I get 401
data = json.loads(response.json()) #data is a dictionary
Run Code Online (Sandbox Code Playgroud)