Closed biggosh closed 2 years ago
I discovered that not all response contains value
in data
field.
i.e. the response for the request to me/drive/root
so I added an if "value" is in response.data:
in client.py before line 214.
is it the solution?
I suggest to add a unit test set to the project
This issue should be resolved upgrading to version 1.1.3
I got
when I call
client.files.drive_root_items()
after the authentication phase.I saw that
self.token
is an object with attributesdata, original, status_code, throttling
anddata
contains the keyaccess_token
So I solved by changing line 250 in client.py to
_headers["Authentication"] = "Bearer " + self.token.data["access_token"]
But now in line 215 of client.py
value
is not a key ofdata
BG