Sybit-Education / airtable.java

Java API for Airtable (http://www.airtable.com)
MIT License
48 stars 25 forks source link

Deprecated Api keys? #81

Closed vojkny closed 1 month ago

vojkny commented 8 months ago

Can you add in documentation how this can be used with API tokens?

stritti commented 8 months ago

Just use it same way than user token.

jaydengregit commented 2 months ago

I am trying to use from jitpack the below version.

    <dependency>
        <groupId>com.github.Sybit-Education</groupId>
        <artifactId>airtable.java</artifactId>
        <version>0.2.2</version>
    </dependency>

I am passing my API token instead of API Key like below

airtable = new Airtable().configure("MyUserToken");

I double checked and passing the correct BaseID

Base base = airtable.base("MyBaseID");

However it fails always with NOT_FOUND

So do we need to do anything else to make it work with user token instead of API KEY?

stritti commented 2 months ago

Hi @jaydengregit, it should normally be enough if you pass the API key instead of user key. Probably you have a typo in the table name? My fault often is to forget the case sensitivity: If your Table has the name "TestTable" within Airtable you have to refer also in the API using "TestTable".

stritti commented 1 month ago

With release 0.3.0 the api key is marked deprecated an personal access token is added.