From 19340d8b144d5586d614a282bb15ad7fc2431afb Mon Sep 17 00:00:00 2001 From: Robert <49005401+Gitznik@users.noreply.github.com> Date: Wed, 20 Oct 2021 21:36:22 +0200 Subject: [PATCH] Fix verify_android_iap example (#78) --- examples/verify_android_in_app_purchase.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/verify_android_in_app_purchase.py b/examples/verify_android_in_app_purchase.py index 4c63c33..85a5c1a 100644 --- a/examples/verify_android_in_app_purchase.py +++ b/examples/verify_android_in_app_purchase.py @@ -5,7 +5,7 @@ from aiogoogle.auth.creds import ServiceAccountCreds ''' -https://developers.google.com/apis-explorer/#search/storage/storage/v1/storage.buckets.list +https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.products/get ''' service_account_key = json.load(open('test_service_account.json')) @@ -37,4 +37,8 @@ async def verify_purchase(token, package_name, product_id): pprint(validation_result.content) if __name__ == "__main__": - asyncio.run(verify_purchase()) + asyncio.run(verify_purchase( + token='replace_this_with_your_token', + product_id='replace_this_with_your_product_id', + package_name='replace_this_with_your_package_name' + ))