seatable / seatable-api-python

SeaTable Python API provide list/add/update/delete records in tables.
https://seatable.github.io/seatable-scripts/
Apache License 2.0
16 stars 8 forks source link

Use account-wide token with Base class #70

Closed unidesigner closed 1 year ago

unidesigner commented 1 year ago

Hi,

I have a shared base and wanted to access it via an account-wide token, but I get a permission denied error. Is there a way to do this using tokens instead of the Account object?

Thanks.

urlbase = f'https://seatableurl'
post = {'username': 'email', 'password': 'pass'}
r = requests.post(urlbase + '/api2/auth-token/', data=post)
base = Base(r.json()['token'], urlbase)
base.list_rows('mysheet')
freeplant commented 1 year ago

I suggest you check with the document or ask questions in the forum.