Browse Source

test

master
arthur.barraux 2 years ago
parent
commit
f77263af71
  1. 30
      app.py
  2. 38
      requirement.txt

30
app.py

@ -1,16 +1,16 @@
from googleapiclient.discovery import build from googleapiclient.discovery import build
import json import json
service = build('drive', 'v3') service = build('drive', 'v3')
collection = service.stamps() collection = service.stamps()
request = collection.list(cents=5) request = collection.list(cents=5)
try: try:
response = request.execute() response = request.execute()
print(json.dumps(response, sort_keys=True, indent=4)) print(json.dumps(response, sort_keys=True, indent=4))
except HttpError as e: except HttpError as e:
print('Error response status code : {0}, reason : {1}'.format(e.status_code, e.error_details)) print('Error response status code : {0}, reason : {1}'.format(e.status_code, e.error_details))
service.close() service.close()

38
requirement.txt

@ -1,19 +1,19 @@
cachetools==5.2.0 cachetools==5.2.0
certifi==2022.12.7 certifi==2022.12.7
charset-normalizer==2.1.1 charset-normalizer==2.1.1
google-api-core==2.11.0 google-api-core==2.11.0
google-api-python-client==2.71.0 google-api-python-client==2.71.0
google-auth==2.15.0 google-auth==2.15.0
google-auth-httplib2==0.1.0 google-auth-httplib2==0.1.0
googleapis-common-protos==1.57.1 googleapis-common-protos==1.57.1
httplib2==0.21.0 httplib2==0.21.0
idna==3.4 idna==3.4
protobuf==4.21.12 protobuf==4.21.12
pyasn1==0.4.8 pyasn1==0.4.8
pyasn1-modules==0.2.8 pyasn1-modules==0.2.8
pyparsing==3.0.9 pyparsing==3.0.9
requests==2.28.1 requests==2.28.1
rsa==4.9 rsa==4.9
six==1.16.0 six==1.16.0
uritemplate==4.1.1 uritemplate==4.1.1
urllib3==1.26.13 urllib3==1.26.13

Loading…
Cancel
Save