【发布时间】:2014-09-23 03:54:55
【问题描述】:
在尝试获取 android 应用内订阅状态(带有到期日期)时,我收到以下错误消息:
{
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "projectNotLinked",
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
}
],
"code": 403,
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
}
}
它说项目 ID 未链接。我做了以下事情:
1. Create the project in Google Developer Console. 2. Turn on the Google Android Publisher API. 3. Link the project ID as mentioned in API access page (https://developers.google.com/android-publisher/getting_started) 4. Fill in the packageName, productId (from in app-purchase), purchase_token (from Android app)
不知道为什么会出现如上的错误消息。我尝试过 OAuth2 游乐场,但没有成功 (https://developers.google.com/oauthplayground/)
【问题讨论】:
标签: android google-api subscription in-app