From f77263af7174e760d787780aa1eebbe4521a02d5 Mon Sep 17 00:00:00 2001 From: "arthur.barraux" Date: Mon, 9 Jan 2023 16:10:43 +0100 Subject: [PATCH] test --- app.py | 30 +++++++++++++++--------------- requirement.txt | 38 +++++++++++++++++++------------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/app.py b/app.py index 7482a1d..beff6dd 100644 --- a/app.py +++ b/app.py @@ -1,16 +1,16 @@ -from googleapiclient.discovery import build -import json - -service = build('drive', 'v3') - -collection = service.stamps() - -request = collection.list(cents=5) - -try: - response = request.execute() - print(json.dumps(response, sort_keys=True, indent=4)) -except HttpError as e: - print('Error response status code : {0}, reason : {1}'.format(e.status_code, e.error_details)) - +from googleapiclient.discovery import build +import json + +service = build('drive', 'v3') + +collection = service.stamps() + +request = collection.list(cents=5) + +try: + response = request.execute() + print(json.dumps(response, sort_keys=True, indent=4)) +except HttpError as e: + print('Error response status code : {0}, reason : {1}'.format(e.status_code, e.error_details)) + service.close() \ No newline at end of file diff --git a/requirement.txt b/requirement.txt index 1d0d769..1305ee6 100644 --- a/requirement.txt +++ b/requirement.txt @@ -1,19 +1,19 @@ -cachetools==5.2.0 -certifi==2022.12.7 -charset-normalizer==2.1.1 -google-api-core==2.11.0 -google-api-python-client==2.71.0 -google-auth==2.15.0 -google-auth-httplib2==0.1.0 -googleapis-common-protos==1.57.1 -httplib2==0.21.0 -idna==3.4 -protobuf==4.21.12 -pyasn1==0.4.8 -pyasn1-modules==0.2.8 -pyparsing==3.0.9 -requests==2.28.1 -rsa==4.9 -six==1.16.0 -uritemplate==4.1.1 -urllib3==1.26.13 +cachetools==5.2.0 +certifi==2022.12.7 +charset-normalizer==2.1.1 +google-api-core==2.11.0 +google-api-python-client==2.71.0 +google-auth==2.15.0 +google-auth-httplib2==0.1.0 +googleapis-common-protos==1.57.1 +httplib2==0.21.0 +idna==3.4 +protobuf==4.21.12 +pyasn1==0.4.8 +pyasn1-modules==0.2.8 +pyparsing==3.0.9 +requests==2.28.1 +rsa==4.9 +six==1.16.0 +uritemplate==4.1.1 +urllib3==1.26.13