Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rezashahabedin opened this issue Jul 25, 2023 · 1 comment
Closed

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

rezashahabedin opened this issue Jul 25, 2023 · 1 comment

Comments

@rezashahabedin
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants