Obter status da assinatura do Android, falha com 403
Ao tentar obter o status da assinatura no aplicativo do Android (com data de validade), recebo a seguinte mensagem de erro:
{
"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."
}
}
Diz que o ID do projeto não está vinculado. Eu fiz o seguinte:
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)
Não sei por que a mensagem de erro aparece como acima. Eu tentei com o playground OAuth2 sem sorte (https://developers.google.com/oauthplayground/)