gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
786 stars 139 forks source link

'Api' object has no attribute 'table' #283

Closed rezashahabedin closed 1 year ago

rezashahabedin commented 1 year ago

when i try the sample code with proper a token, i recieve an error saying AttributeError: 'Api' object has no attribute 'table'

sample code: import os from pyairtable import Api api = Api(os.environ['AIRTABLE_API_KEY']) table = api.table('appExampleBaseId', 'tblExampleTableId') table.all()

source: https://pyairtable.readthedocs.io/en/latest/getting-started.html

mesozoic commented 1 year ago

Hi @rezashahabedin – you are looking at the latest docs branch, which points to the (soon to be released) 2.0 version of the library. If you're using 1.5, please take a look at stable: https://pyairtable.readthedocs.io/en/stable/getting-started.html