From 854524b2c013f487eeaeeb5824a0d6c41562b863 Mon Sep 17 00:00:00 2001 From: arthur Date: Sun, 8 Jan 2023 20:42:23 +0100 Subject: [PATCH] first commit --- app.py | 16 ++++++++++++++++ requirement.txt | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 app.py create mode 100644 requirement.txt diff --git a/app.py b/app.py new file mode 100644 index 0000000..7482a1d --- /dev/null +++ b/app.py @@ -0,0 +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)) + +service.close() \ No newline at end of file diff --git a/requirement.txt b/requirement.txt new file mode 100644 index 0000000..1d0d769 --- /dev/null +++ b/requirement.txt @@ -0,0 +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