Я пытаюсь подтвердить получение Google Play с помощью API. Я создал учетную запись службы, включил API, успешно получил токен, но когда я отправляю запрос к API для проверки, я получаю неизвестную ошибку и не могу найти причину.
Мой запрос:
package_name = '...'
product_id = '...'
purchase_token = '...'
url = f"https://androidpublisher.googleapis.com ... hase_token}"
response = requests.get(url, headers={'Authorization': f'Bearer {credentials.token}', 'Accept': 'application/json'})
Ошибка:
{
"error": {
"code": 404,
"message": "The document type is not supported.",
"errors": [
{
"message": "The document type is not supported.",
"domain": "androidpublisher",
"reason": "unsupportedDocType",
"location": "token",
"locationType": "parameter"
}
]
}
Подробнее здесь: https://stackoverflow.com/questions/778 ... ion-python